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 183 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 = 17290
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin137
RA = 36.2294, Dec = 18.7194
tmin = 321840001, tmax = 322444801
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='499601', job_status='RUN', time_executed='2021-07-04 19:06:43.021300', time_epoch_executed='1625450803.02' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499601

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499601/ft1_4FGL_J0224.9+1843_weekly_bin137.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499601/ft2_4FGL_J0224.9+1843_weekly_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499601/ft1_4FGL_J0224.9+1843_weekly_bin137.fits outfile=/scratch/kocevski/499601/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin137.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=321840001.0 tmax=322444801.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.69
user 6.91
sys 0.38

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499601/ft1_filtered_4FGL_J0224.9+1843_weekly_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/499601/ft2_4FGL_J0224.9+1843_weekly_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/499601/ltcube_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.fits outfile=/scratch/kocevski/499601/expmap_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.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/499601/ltcube_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.fits
.....................!
real 198.70
user 185.17
sys 5.23

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/499601/ft1_filtered_4FGL_J0224.9+1843_weekly_bin137.fits scfile=/scratch/kocevski/499601/ft2_4FGL_J0224.9+1843_weekly_bin137.fits outfile=/scratch/kocevski/499601/cmap_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.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 1.57
user 0.40
sys 0.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499601/ft1_filtered_4FGL_J0224.9+1843_weekly_bin137.fits scfile=/scratch/kocevski/499601/ft2_4FGL_J0224.9+1843_weekly_bin137.fits outfile=/scratch/kocevski/499601/cmap_HighResolution_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.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.94
user 0.40
sys 0.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2448       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.2763       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7896       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.5475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4232       1.0000         .10000E-03   10000.    
    20 'norm      '    .32584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.043       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5427       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7048       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    78.429       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93449       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=   21239.59     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3991 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.06       -.71666E-06** at limit **
   2  Prefactor     6.8037        8.0286        .45965E-06    .21101E-04
   3  Prefactor     2.2446        3.4615        .12135E-05   -.57103E-04
   4  Prefactor     12.605        112.02       -.15059E-05   -.34625E-04
   5  Prefactor     .10000E-03    .46423        .99754E-08** at limit **
   6  norm          7.2761        3.4879        .22818E-07   -.36328E-04
   7  Prefactor     3.5886        3.8018        .12376E-06   -.12767E-03
   8  Prefactor     .10000E-03    .52852        .59024E-07** at limit **
   9  norm          .10000E-03    20.926       -.26517E-07** at limit **
  10  Prefactor     9.0360        20.007        .11859E-06   -.31559E-04
  11  Prefactor     .10000E-03    9.4350        .14254E-06** at limit **
  12  Prefactor     .10000E-03    1.5218        .15871E-07** at limit **
  13  Prefactor     34.238        36.635        .19254E-06   -.21664E-04
  14  Prefactor     1.7486        129.15        .16662E-05   -.42907E-04
  15  Prefactor     15.846        6.7011        .74672E-07   -.49994E-03
  16  Prefactor     19.731        24.775        .18850E-06   -.35514E-04
  17  Prefactor     .10000E-03    2.1070        .61182E-08** at limit **
  18  norm          8.5475        1.7352        .56962E-08   -.57353E-03
  19  Prefactor     1.4231        5.6921       -.21933E-05   -.10080E-03
  20  norm          .32585        .27672        .53778E-06   -.24706E-03
  21  Prefactor     .10000E-03    8.7426       -.20614E-09** at limit **
  22  norm          17.043        8.2456        .81971E-07   -.18439E-03
  23  Prefactor     2.5428        8.7477       -.17135E-05   -.12521E-03
  24  Prefactor     .10000E-03    13.560        .94935E-07** at limit **
  25  Prefactor     1.7049        5.9877        .30542E-05   -.18427E-03
  26  Prefactor     .10000E-03    10.581       -.30558E-06** at limit **
  27  norm          .10000E-03    2.5374        .87388E-08** at limit **
  28  Prefactor     78.396        106.95        .10476E-05   -.20589E-05
  29  Normalizat    1.1693        .14227       -.64728E-06   -.61240E-03
  30  Prefactor     .93445        .58702E-01   -.11655E-06   -.89822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 6.80367
  Prefactor  = 2.24458
  Prefactor  = 12.6054
  Prefactor  = 0.0001
  norm       = 7.27612
  Prefactor  = 3.58862
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.03597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2378
  Prefactor  = 1.74861
  Prefactor  = 15.8462
  Prefactor  = 19.7313
  Prefactor  = 0.0001
  norm       = 8.54752
  Prefactor  = 1.42312
  norm       = 0.325846
  Prefactor  = 0.0001
  norm       = 17.0428
  Prefactor  = 2.5428
  Prefactor  = 0.0001
  Prefactor  = 1.70487
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 78.3958
  Normalizat = 1.1693
  Prefactor  = 0.934445
 **********
 **   18 **HESSE 
 **********

 FCN=   21239.59     FROM HESSE     STATUS=OK           592 CALLS     4583 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8037        8.0693        .76899E-03   -1.5186    
   3  Prefactor     2.2446        3.4543        .13714E-02   -1.5408    
   4  Prefactor     12.605        112.16        .11305E-03   -1.4998    
   5  Prefactor     .10000E-03    5.1034        .19004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.2761        3.4840        .14870E-03   -1.5168    
   7  Prefactor     3.5886        3.7886        .21331E-03   -1.5329    
   8  Prefactor     .10000E-03    .53832        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0360        19.921        .13333E-03   -1.5107    
  11  Prefactor     .10000E-03    9.4483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5297        .17546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.238        36.611        .68480E-04   -1.4537    
  14  Prefactor     1.7486        130.26        .31269E-03   -1.5443    
  15  Prefactor     15.846        6.6667        .10061E-03   -1.4912    
  16  Prefactor     19.731        24.687        .90169E-04   -1.4819    
  17  Prefactor     .10000E-03    2.1128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.5475        1.7345        .82694E-04   -1.5123    
  19  Prefactor     1.4231        5.6737        .36250E-03   -1.5469    
  20  norm          .32585        .27776        .71044E-03   -1.5594    
  21  Prefactor     .10000E-03    8.7476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.043        8.2391        .97017E-04   -1.4882    
  23  Prefactor     2.5428        8.6859        .25610E-03   -1.5389    
  24  Prefactor     .10000E-03    13.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7049        6.0053        .16104E-02   -1.5447    
  26  Prefactor     .10000E-03    10.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.5553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     78.396        107.24        .45346E-04   -1.3935    
  29  Normalizat    1.1693        .16055        .36310E-03   -.87557    
  30  Prefactor     .93445        .67430E-01    .17644E-03   -.94948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2691e-09
Minuit parameter uncertainties:
  1  0.00125018
  2  8.0706
  3  3.45461
  4  75.3904
  5  2.14924e-05
  6  3.48412
  7  3.78884
  8  8.74778e-06
  9  1.04106e-05
  10  19.936
  11  5.01324e-05
  12  7.02302e-06
  13  36.6347
  14  30.2515
  15  6.66706
  16  24.6996
  17  4.14173e-06
  18  1.7345
  19  5.67585
  20  0.277757
  21  1.83711e-05
  22  8.23966
  23  8.69025
  24  2.16402e-05
  25  6.00742
  26  6.59906e-05
  27  2.34941e-06
  28  107.503
  29  0.160615
  30  0.0674364
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.344e-01  6.744e-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.169e+00  1.606e-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.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/499601/likelihoodResults_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.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) = 21239.5867543
delta logL = -0.000504496056237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21239.5862498
delta logL = -3.56521923095e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9543       1.0000          .0000       10.000    
     3 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93445       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=   21239.59     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      251 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    904.66        .18142E-02** at limit **
   2  Index         3.1095        5.4528        .50000       -.65666E-07
   3  Normalizat    1.1693        .40918E-01    .36310E-03   -.52263E-03
   4  Prefactor     .93444        .18116E-01    .17643E-03   -.10756E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.10946
  Normalizat = 1.1693
  Prefactor  = 0.934445
 **********
 **   18 **HESSE 
 **********

 FCN=   21239.59     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1095        7.0981        .50000       -.38775    
   3  Normalizat    1.1693        .14857        .14524E-04   -.87557    
   4  Prefactor     .93444        .65795E-01    .35287E-04   -.94948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34113e-10
Minuit parameter uncertainties:
  1  0.0004923
  2  432.242
  3  0.148622
  4  0.0658008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499601': 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) = 21239.5862498
delta logL = 6.27223926131e-08

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.923e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.109e+00  4.322e+02  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.344e-01  6.580e-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.169e+00  1.486e-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/499601/cmap_HighResolution_321840001_322444801_4FGL_J0224.9+1843_weekly_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-07-04 19:45:59.457911', job_id='499601', GAL2='0.93', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1625453159.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.95' WHERE bin_id='137' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:45:59 PDT 2021


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

Job <4FGL_J0224.9+1843_weekly_bin137> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:00:51 2021
Job was executed on host(s) <bullet0066>, 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:46:04 2021
Results reported at Sun Jul  4 19:46:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin137 36.2294 18.7194 321840001 322444801 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 :                                   2133.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             99.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13503 sec.
    Turnaround time :                            13513 sec.

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

