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. '
User defined signal 2
Repository/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 16 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 = 17252
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin320
RA = 36.2294, Dec = 18.7194
tmin = 432518401, tmax = 433123201
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='500065', job_status='RUN', time_executed='2021-07-04 16:07:44.670167', time_epoch_executed='1625440064.67' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500065

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500065/ft1_4FGL_J0224.9+1843_weekly_bin320.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500065/ft2_4FGL_J0224.9+1843_weekly_bin320.fits


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

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

Done.
real 12.37
user 11.30
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500065/ft1_filtered_4FGL_J0224.9+1843_weekly_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/500065/ft2_4FGL_J0224.9+1843_weekly_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/500065/ltcube_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.fits outfile=/scratch/kocevski/500065/expmap_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.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/500065/ltcube_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.fits
.....................!
real 203.14
user 186.14
sys 5.45

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/500065/ft1_filtered_4FGL_J0224.9+1843_weekly_bin320.fits scfile=/scratch/kocevski/500065/ft2_4FGL_J0224.9+1843_weekly_bin320.fits outfile=/scratch/kocevski/500065/cmap_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.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.69
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500065/ft1_filtered_4FGL_J0224.9+1843_weekly_bin320.fits scfile=/scratch/kocevski/500065/ft2_4FGL_J0224.9+1843_weekly_bin320.fits outfile=/scratch/kocevski/500065/cmap_HighResolution_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.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.71
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.743       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2553       1.0000         .10000E-03   10000.    
     6 'norm      '    6.0344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11510E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30191E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19707E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9059       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6756       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4323       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18861E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6657       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99697       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98255       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=   17792.81     FROM MIGRAD    STATUS=CONVERGED   1424 CALLS     4690 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.731        39.535        .53727E-04    .11680E-04
   2  Prefactor     3.0764        7.1613        .23124E-03    .34021E-04
   3  Prefactor     5.9533        5.1843        .16456E-03   -.23627E-03
   4  Prefactor     .10000E-03    45.609        .18142E-02** at limit **
   5  Prefactor     1.2544        1.9849        .22393E-03   -.26602E-04
   6  norm          6.0338        4.2118        .16345E-03   -.54587E-03
   7  Prefactor     2.4464        2.3009        .19052E-03   -.47737E-04
   8  Prefactor     .10001E-03    3.0150        .19581E-02** at limit **
   9  norm          .10000E-03    13.806        .18142E-02** at limit **
  10  Prefactor     .10149E-03    8.3319        .12783    ** at limit **
  11  Prefactor     30.714        27.006        .72283E-04   -.72349E-04
  12  Prefactor     .10000E-03    15.340        .40238E-02** at limit **
  13  Prefactor     .10000E-03    21.335        .18142E-02** at limit **
  14  Prefactor     .10000E-03    26.710        .18142E-02** at limit **
  15  Prefactor     1.8796        8.0415        .30119E-03   -.52392E-04
  16  Prefactor     5.1546        11.031        .88510E-03   -.70491E-04
  17  Prefactor     .10000E-03    3.0471        .18142E-02** at limit **
  18  norm          4.4305        1.4658        .89195E-04   -.41857E-03
  19  Prefactor     3.6826        11.242        .21067E-03   -.95623E-04
  20  norm          2.4324        .66941        .43873E-04   -.73696E-03
  21  Prefactor     .10000E-03    10.208        .18142E-02** at limit **
  22  norm          .10000E-03    2.3602        .18142E-02** at limit **
  23  Prefactor     44.404        21.675        .60160E-04   -.12850E-03
  24  Prefactor     .10000E-03    7.9164        .18142E-02** at limit **
  25  Prefactor     .10286E-03    5.3088        .63370E-01** at limit **
  26  Prefactor     2.6628        16.565        .24963E-03    .29147E-05
  27  norm          .10000E-03    4.4192        .36285E-03** at limit **
  28  Prefactor     .10000E-03    38.578        .18142E-02** at limit **
  29  Normalizat    .99717        .18354        .39061E-03   -.63821E-03
  30  Prefactor     .98250        .74496E-01    .17330E-03   -.14220E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.7308
  Prefactor  = 3.07645
  Prefactor  = 5.95329
  Prefactor  = 0.0001
  Prefactor  = 1.25438
  norm       = 6.03384
  Prefactor  = 2.44638
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.000101489
  Prefactor  = 30.7135
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87959
  Prefactor  = 5.15462
  Prefactor  = 0.0001
  norm       = 4.4305
  Prefactor  = 3.68262
  norm       = 2.43238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.4041
  Prefactor  = 0.0001
  Prefactor  = 0.000102856
  Prefactor  = 2.66284
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997169
  Prefactor  = 0.982503
 **********
 **   18 **HESSE 
 **********

 FCN=   17792.81     FROM HESSE     STATUS=OK           576 CALLS     5266 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.731        39.535        .10745E-04   -1.4214    
   2  Prefactor     3.0764        7.1595        .92497E-05   -1.5357    
   3  Prefactor     5.9533        5.1839        .65824E-05   -1.5220    
   4  Prefactor     .10000E-03    45.610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2544        1.9844        .89574E-05   -1.5484    
   6  norm          6.0338        4.2110        .65380E-05   -1.5217    
   7  Prefactor     2.4464        2.3008        .76208E-05   -1.5395    
   8  Prefactor     .10001E-03    3.0365        .39163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10149E-03    8.2628        .12881       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.714        27.013        .28913E-05   -1.4599    
  12  Prefactor     .10000E-03    15.489        .80476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8796        7.9910        .12047E-04   -1.5434    
  16  Prefactor     5.1546        11.030        .35404E-04   -1.5254    
  17  Prefactor     .10000E-03    3.0483        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4305        1.4658        .35678E-05   -1.5287    
  19  Prefactor     3.6826        11.224        .84270E-05   -1.5324    
  20  norm          2.4324        .66918        .17549E-05   -1.5396    
  21  Prefactor     .10000E-03    10.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     44.404        21.680        .24064E-05   -1.4374    
  24  Prefactor     .10000E-03    7.9167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10286E-03    4.2370        .72771E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.6628        16.563        .99852E-05   -1.5382    
  27  norm          .10000E-03    4.4194        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    38.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99717        .18356        .15624E-04   -.93125    
  30  Prefactor     .98250        .74538E-01    .34660E-04   -.93315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24988e-09
Minuit parameter uncertainties:
  1  39.5534
  2  7.16151
  3  5.18432
  4  6.21229e-05
  5  1.98449
  6  4.21119
  7  2.30089
  8  0.0003855
  9  1.24595e-05
  10  0.00701662
  11  27.0236
  12  0.000449225
  13  5.4858e-05
  14  8.26826e-05
  15  7.7526
  16  11.0345
  17  3.53511e-06
  18  1.46579
  19  11.2304
  20  0.669184
  21  7.53544e-06
  22  1.88934e-06
  23  21.6838
  24  9.52156e-06
  25  0.00695827
  26  13.2873
  27  2.94152e-06
  28  0.000101104
  29  0.183672
  30  0.074546
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  3.071e+01  2.702e+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:  9.825e-01  7.455e-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:  9.972e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 36.229 18.719
Photon Index (Fixed Index): 2.95 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 8.93e-06

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

Saving results to:
/scratch/kocevski/500065/likelihoodResults_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.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) = 17792.8120989
delta logL = 0.00151324150283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17792.8118105
delta logL = 0.00180172015826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.237       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9005       1.0000          .0000       10.000    
     3 'Normalizat'    .99860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98194       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=   17792.81     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      278 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.237        28.976        .71691E-04    .16200E-03
   2  Index         2.9005        .83653        .17149E-01    .55821E-04
   3  Normalizat    .99850        .16932        .39038E-03    .32256E-03
   4  Prefactor     .98198        .74269E-01    .17334E-03    .94117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2372
  Index      = 2.90054
  Normalizat = 0.998504
  Prefactor  = 0.981984
 **********
 **   18 **HESSE 
 **********

 FCN=   17792.81     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.237        28.304        .14338E-04   -1.4590    
   2  Index         2.9005        .81744        .68598E-03   -.43333    
   3  Normalizat    .99850        .16947        .15615E-04   -.93081    
   4  Prefactor     .98198        .74275E-01    .34668E-04   -.93332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57503e-10
Minuit parameter uncertainties:
  1  28.3157
  2  0.821926
  3  0.169566
  4  0.0742825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500065': 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) = 17792.8118103
delta logL = 0.00180189528328

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  3.124e+01  2.832e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.901e+00  8.219e-01  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.820e-01  7.428e-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:  9.985e-01  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 36.229 18.719
Photon Index (Free Index): 2.90 +/- 0.82
Photon Flux (Free Index): 4.88e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.03e-05 +/- 9.16e-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/500065/cmap_HighResolution_432518401_433123201_4FGL_J0224.9+1843_weekly_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='1.03e-05', photon_flux_error='4.36e-08', dlogl='1.80e-03', energy_flux='1.02e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-07-04 16:45:56.878262', photon_index_error2='0.82', photon_index2='2.90', ts='1.56', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='9.16e-06', EG='1.00', time_epoch_completed='1625442356.88', return_code='0', job_id='500065', GAL2='0.98', EG2='1.00', return_code2='0', energy_flux_error='8.93e-06', photon_flux_error2='4.47e-08', ts2='1.57', photon_index='2.95' WHERE bin_id='320' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 500065: <4FGL_J0224.9+1843_weekly_bin320> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin320> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 16:01:24 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:02:36 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:02:36 2021
Terminated at Sun Jul  4 16:46:04 2021
Results reported at Sun Jul  4 16: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_bin320 36.2294 18.7194 432518401 433123201 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 :                                   2047.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             294.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2608 sec.
    Turnaround time :                            2680 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 500118: <4FGL_J0224.9+1843_weekly_bin320> in cluster <slac> Exited

Job <4FGL_J0224.9+1843_weekly_bin320> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:01:27 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:02:50 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:02:50 2021
Terminated at Mon Jul  5 08:42:56 2021
Results reported at Mon Jul  5 08:42:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin320 36.2294 18.7194 432518401 433123201 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
------------------------------------------------------------

TERM_RUNLIMIT: job killed after reaching LSF run time limit.
Exited with exit code 140.

Resource usage summary:

    CPU time :                                   28.28 sec.
    Max Memory :                                 47 MB
    Average Memory :                             46.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              4
    Max Threads :                                19
    Run time :                                   60005 sec.
    Turnaround time :                            60089 sec.

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

