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


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin653
RA = 36.2294, Dec = 18.7194
tmin = 633916801, tmax = 634521601
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='503462', job_status='RUN', time_executed='2021-07-04 19:06:31.389106', time_epoch_executed='1625450791.39' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503462

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503462/ft1_4FGL_J0224.9+1843_weekly_bin653.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503462/ft1_4FGL_J0224.9+1843_weekly_bin653.fits outfile=/scratch/kocevski/503462/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin653.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=633916801.0 tmax=634521601.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 10.81
user 8.89
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.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/503462/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/503462/ft1_filtered_4FGL_J0224.9+1843_weekly_bin653.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.76
user 0.37
sys 0.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503462/ft1_filtered_4FGL_J0224.9+1843_weekly_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/503462/ltcube_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.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/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.fits
.....................!
real 27.13
user 25.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503462/ft1_filtered_4FGL_J0224.9+1843_weekly_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/503462/ltcube_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.fits outfile=/scratch/kocevski/503462/expmap_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.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/503462/ltcube_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.fits
.....................!
real 198.63
user 185.16
sys 5.16

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/503462/ft1_filtered_4FGL_J0224.9+1843_weekly_bin653.fits scfile=/scratch/kocevski/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.fits outfile=/scratch/kocevski/503462/cmap_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.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.89
user 0.40
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503462/ft1_filtered_4FGL_J0224.9+1843_weekly_bin653.fits scfile=/scratch/kocevski/503462/ft2_4FGL_J0224.9+1843_weekly_bin653.fits outfile=/scratch/kocevski/503462/cmap_HighResolution_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.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 1.51
user 0.42
sys 0.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2201       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98764       1.0000         .10000E-03   10000.    
     9 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.364       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10592E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4646       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4754       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.319       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.640       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2772       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95112       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=   22281.74     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2704 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    16.056        .42573E-05** at limit **
   2  Prefactor     .10000E-03    1.7592        .64235E-07** at limit **
   3  Prefactor     2.8887        2.6109        .28306E-06    .76690E-04
   4  Prefactor     .10300E-03    39.548       -.16208E-04** at limit **
   5  Prefactor     .10000E-03    1.5512       -.13094E-05** at limit **
   6  norm          4.2190        1.0552       -.23441E-06   -.77124E-03
   7  Prefactor     1.8633        2.4472        .40000E-07   -.39162E-04
   8  Prefactor     .98947        1.5850       -.93027E-06   -.12901E-03
   9  norm          .10279E-03    31.073       -.17103E-05** at limit **
  10  Prefactor     15.403        1.2357       -.24362E-06    .19906E-03
  11  Prefactor     .10000E-03    2.9290        .24473E-05** at limit **
  12  Prefactor     3.1553        1.2047       -.14133E-05   -.20457E-02
  13  Prefactor     .10000E-03    12.416       -.21002E-04** at limit **
  14  Prefactor     39.361        1.0443       -.16212E-06    .92554E-03
  15  Prefactor     .10000E-03    1.4922        .98115E-05** at limit **
  16  Prefactor     .10000E-03    3.1711       -.19029E-05** at limit **
  17  Prefactor     .10000E-03    3.0066        .35392E-05** at limit **
  18  norm          1.4645        1.3588       -.63649E-06   -.22551E-03
  19  Prefactor     .10000E-03    1.7498       -.10607E-06** at limit **
  20  norm          3.4755        .50083        .21696E-06    .70971E-03
  21  Prefactor     .10000E-03    3.5730       -.49493E-05** at limit **
  22  norm          .10000E-03    3.3675       -.13807E-05** at limit **
  23  Prefactor     .10000E-03    2.9579       -.32865E-05** at limit **
  24  Prefactor     39.325        1.1163        .16690E-06   -.70858E-03
  25  Prefactor     19.639        1.0101        .14894E-06    .31945E-03
  26  Prefactor     .10000E-03    9.6431        .23246E-04** at limit **
  27  norm          .10000E-03    4.5267        .13708E-05** at limit **
  28  Prefactor     .10000E-03    15.856        .60317E-05** at limit **
  29  Normalizat    1.2772        .15364       -.71579E-06   -.63927E-04
  30  Prefactor     .95114        .67650E-01   -.33505E-07   -.85334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 2.88869
  Prefactor  = 0.000103001
  Prefactor  = 0.0001
  norm       = 4.219
  Prefactor  = 1.86327
  Prefactor  = 0.989474
  norm       = 0.000102794
  Prefactor  = 15.4032
  Prefactor  = 0.000100003
  Prefactor  = 3.15535
  Prefactor  = 0.000100003
  Prefactor  = 39.3614
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4645
  Prefactor  = 0.0001
  norm       = 3.47555
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3252
  Prefactor  = 19.6388
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27722
  Prefactor  = 0.951143
 **********
 **   18 **HESSE 
 **********

 FCN=   22281.74     FROM HESSE     STATUS=OK           654 CALLS     3358 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    31.469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8887        2.6343        .59775E-02   -1.5368    
   4  Prefactor     .10300E-03    74.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .63278        .37808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2190        3.3914        .49040E-02   -1.5297    
   7  Prefactor     1.8633        2.4650        .76293E-02   -1.5435    
   8  Prefactor     .98947        1.7334        .13122E-01   -1.5509    
   9  norm          .10279E-03    63.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.403        19.380        .25504E-02   -1.4923    
  11  Prefactor     .10000E-03    9.0446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1553        4.6787        .57102E-02   -1.5353    
  13  Prefactor     .10000E-03    12.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.361        26.699        .15971E-02   -1.4452    
  15  Prefactor     .10000E-03    2.1320        .77741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4645        1.3741        .88837E-02   -1.5466    
  19  Prefactor     .10000E-03    1.7452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4755        .50305        .54227E-02   -1.5335    
  21  Prefactor     .10000E-03    8.9323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.3290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     39.325        20.856        .15980E-02   -1.4453    
  25  Prefactor     19.639        6.6371        .22594E-02   -1.4821    
  26  Prefactor     .10000E-03    10.840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.3591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    32.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2772        .13870        .82229E-01   -.84249    
  30  Prefactor     .95114        .59264E-01    .45653E-01   -.94376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06795e-07
Minuit parameter uncertainties:
  1  0.0018958
  2  2.12543e-06
  3  2.63445
  4  0.0299351
  5  3.01518e-06
  6  3.39151
  7  2.46516
  8  1.73347
  9  0.0266154
  10  19.3881
  11  0.000312375
  12  4.67921
  13  0.000387506
  14  26.707
  15  0.000169426
  16  4.70092e-05
  17  2.51241e-05
  18  1.37414
  19  1.74461e-06
  20  0.50305
  21  0.000310239
  22  1.28028e-05
  23  1.81546e-05
  24  20.8596
  25  6.63733
  26  0.000184351
  27  7.42786e-06
  28  0.000238319
  29  0.138738
  30  0.0592685
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.124e-04  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:  9.511e-01  5.927e-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.277e+00  1.387e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503462/likelihoodResults_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.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) = 22281.7376062
delta logL = -0.000525582476257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22281.7370806
delta logL = 1.11940607894e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9268       1.0000          .0000       10.000    
     3 'Normalizat'    1.2772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95115       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=   22281.74     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      267 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    325.21        .18142E-01** at limit **
   2  Index         2.0229        8.6018        .50000       -.10623E-06
   3  Normalizat    1.2772        .15969E-01    .36402E-03   -.28320E-03
   4  Prefactor     .95114        .71155E-02    .18352E-03   -.52969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02294
  Normalizat = 1.27722
  Prefactor  = 0.951143
 **********
 **   18 **HESSE 
 **********

 FCN=   22281.74     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6959.4        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0229        5.8648        .50000       -.63778    
   3  Normalizat    1.2772        .12360        .14561E-04   -.84249    
   4  Prefactor     .95114        .55082E-01    .36704E-04   -.94376    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30258e-09
Minuit parameter uncertainties:
  1  0.00252421
  2  1159.5
  3  0.123633
  4  0.0550849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503462': 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) = 22281.7370777
delta logL = 2.89220770355e-06

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.524e-03  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.023e+00  1.160e+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:  9.511e-01  5.508e-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.277e+00  1.236e-01  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/503462/cmap_HighResolution_633916801_634521601_4FGL_J0224.9+1843_weekly_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-07-04 19:40:00.655420', job_id='503462', GAL2='0.95', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1625452800.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.95' WHERE bin_id='653' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:40:00 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 503488: <4FGL_J0224.9+1843_weekly_bin653> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin653> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:46 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:48 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:48 2021
Terminated at Sun Jul  4 16:52:36 2021
Results reported at Sun Jul  4 16:52:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin653 36.2294 18.7194 633916801 634521601 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 :                                   1966.00 sec.
    Max Memory :                                 620 MB
    Average Memory :                             290.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2446 sec.
    Turnaround time :                            2450 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 503462: <4FGL_J0224.9+1843_weekly_bin653> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin653 36.2294 18.7194 633916801 634521601 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 :                                   1942.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             96.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12498 sec.
    Turnaround time :                            12501 sec.

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

