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 184 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).
nnumber of points = 17013
number of fields = 30
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin589
RA = 36.2294, Dec = 18.7194
tmin = 595209601, tmax = 595814401
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='503280', job_status='RUN', time_executed='2021-07-04 16:20:01.334395', time_epoch_executed='1625440801.33' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503280

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503280/ft1_4FGL_J0224.9+1843_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits


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

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

Done.
real 6.64
user 5.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503280/ft1_filtered_4FGL_J0224.9+1843_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/503280/ltcube_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.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/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits
.....................!
real 32.99
user 30.04
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503280/ft1_filtered_4FGL_J0224.9+1843_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/503280/ltcube_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.fits outfile=/scratch/kocevski/503280/expmap_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.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/503280/ltcube_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.fits
.....................!
real 197.00
user 184.37
sys 5.69

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/503280/ft1_filtered_4FGL_J0224.9+1843_weekly_bin589.fits scfile=/scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits outfile=/scratch/kocevski/503280/cmap_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.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.93
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503280/ft1_filtered_4FGL_J0224.9+1843_weekly_bin589.fits scfile=/scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits outfile=/scratch/kocevski/503280/cmap_HighResolution_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.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.79
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/503280/ft1_filtered_4FGL_J0224.9+1843_weekly_bin589.fits', '/scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits', expMap='/scratch/kocevski/503280/expmap_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.fits', expCube='/scratch/kocevski/503280/ltcube_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/503280/Model_4FGL_J0224.9+1843_weekly_bin589.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/503280/ft1_filtered_4FGL_J0224.9+1843_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/503280/ft2_4FGL_J0224.9+1843_weekly_bin589.fits
Exposure map: /scratch/kocevski/503280/expmap_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.fits
Exposure cube: /scratch/kocevski/503280/ltcube_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/503280/Model_4FGL_J0224.9+1843_weekly_bin589.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15665E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14402E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12715E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .67885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    926.38       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5063       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21878E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82987       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69057E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    93.507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12993       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7400       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    22 'norm      '    4.1065       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    27 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10394E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94597       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=   157.6443     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1095 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    353.97       -.48477E-06** at limit **
   2  Prefactor     .10000E-03    43.029       -.12283E-06** at limit **
   3  Prefactor     .10000E-03    53.953       -.36622E-07** at limit **
   4  Prefactor     .10000E-03    713.12       -.76386E-06** at limit **
   5  Prefactor     .10000E-03    12.885        .60049E-07** at limit **
   6  norm          .10000E-03    31.147        .86548E-07** at limit **
   7  Prefactor     .10000E-03    62.622       -.12439E-06** at limit **
   8  Prefactor     .10000E-03    29.303       -.20081E-05** at limit **
   9  norm          .10005E-03    6432.6       -.13583E-04** at limit **
  10  Prefactor     .10004E-03    1393.6       -.34498E-04** at limit **
  11  Prefactor     .10002E-03    1783.1        .10171E-04** at limit **
  12  Prefactor     .10000E-03    151.75        .49399E-07** at limit **
  13  Prefactor     .10000E-03    6777.4       -.37677E-05** at limit **
  14  Prefactor     .10000E-03    6283.8        .59401E-06** at limit **
  15  Prefactor     .10000E-03    1236.6       -.97807E-06** at limit **
  16  Prefactor     4306.4        4003.4       -.22415E-04    .11397E-04
  17  Prefactor     .10039E-03    8822.3        .54005E-04** at limit **
  18  norm          8.8491        1.0016         .0000         .0000    
  19  Prefactor     1.9562        1.0371         .0000         .0000    
  20  norm          1.7400        1.0487         .0000         .0000    
  21  Prefactor     3.2214        1.0126         .0000         .0000    
  22  norm          4.1065        1.0076         .0000         .0000    
  23  Prefactor     3.1966        1.0128         .0000         .0000    
  24  Prefactor     6.1829        1.0033         .0000         .0000    
  25  Prefactor     3.1506        1.0132         .0000         .0000    
  26  Prefactor     2.5180        1.0212         .0000         .0000    
  27  norm          1.0397        1.2531         .0000         .0000    
  28  Prefactor     6.6702        1.0028         .0000         .0000    
  29  Normalizat    .10000E-01    8.1861        .88277E-04** at limit **
  30  Prefactor     .94328        .32188       -.90152E-06    .29400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100055
  Prefactor  = 0.000100036
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 4306.42
  Prefactor  = 0.000100393
  norm       = 8.84905
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 3.22138
  norm       = 4.10648
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 3.15065
  Prefactor  = 2.51803
  norm       = 1.03974
  Prefactor  = 6.67016
  Normalizat = 0.01
  Prefactor  = 0.943277
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   157.6443     FROM HESSE     STATUS=FAILED        79 CALLS     1174 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    352.82        .91011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    714.66        .11683E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    30.470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10005E-03    6439.1        .11980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    1407.5        .34492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    1788.5        .64529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    148.23        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6816.1        .26075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6284.9        .12551E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1241.9        .93627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4306.4        3998.5        .10390E-02   -.13916    
  17  Prefactor     .10039E-03    8836.1        .96530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          498.85        489.97         .0000       -1.5113    
  19  Prefactor     1.9562        1.0371         .0000       -1.5428    
  20  norm          1.7400        1.0487         .0000       -1.5444    
  21  Prefactor     3.2214        1.0126         .0000       -1.5349    
  22  norm          4.1065        1.0076         .0000       -1.5303    
  23  Prefactor     3.1966        1.0128         .0000       -1.5350    
  24  Prefactor     6.1829        1.0033         .0000       -1.5211    
  25  Prefactor     3.1506        1.0132         .0000       -1.5353    
  26  Prefactor     2.5180        1.0212         .0000       -1.5391    
  27  norm          1.0397        1.2531         .0000       -1.5504    
  28  Prefactor     6.6702        1.0028         .0000       -1.5191    
  29  Normalizat    .10000E-01    .25515        .88277E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .94328        1.2868       -.90152E-06   -.94645    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36227e-10
Minuit parameter uncertainties:
  1  0.00243384
  2  4.38169e-05
  3  2.55895e-05
  4  0.000497649
  5  1.37912e-05
  6  4.6391e-05
  7  5.81321e-05
  8  0.000326698
  9  0.0264454
  10  0.0145043
  11  0.0123736
  12  0.000103697
  13  0.00260105
  14  0.00437317
  15  0.00165705
  16  4654.15
  17  0.133871
  18  1.0016
  19  1.0371
  20  1.04876
  21  1.01258
  22  1.00761
  23  1.01279
  24  1.00331
  25  1.01318
  26  1.02121
  27  1.25317
  28  1.00284
  29  1.07338e-05
  30  1.33247
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.433e-01  1.332e+00  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.000e-02  1.073e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.229 18.719
Photon Flux Upper Limit: 1.31e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503280/likelihoodResults_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.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) = 157.644332643
delta logL = -3.04225275727e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 157.644330104
delta logL = -5.03136021734e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2156       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94328       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=   157.6443     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      310 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11372E-03    7454.9        .18142E-01** at limit **
   2  Index         3.6663        6.4281        .50000        .80775E-07
   3  Normalizat    .10000E-01    .68361E-01    .11243E-01** at limit **
   4  Prefactor     .94327        .28733E-01    .13528E-03   -.16717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113718
  Index      = 3.6663
  Normalizat = 0.01
  Prefactor  = 0.94327
 **********
 **   18 **HESSE 
 **********

 FCN=   157.6443     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      339 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11372E-03    9937.1        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6663        6.5271        .50000       -.27001    
   3  Normalizat    .10000E-01    .33146        .22486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94327        .63227E-01    .27057E-04   -.94645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.8904e-10
Minuit parameter uncertainties:
  1  1.2469
  2  23704.4
  3  1.04582e-05
  4  0.0632317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503280': 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) = 157.644329612
delta logL = -1.12393649943e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.433e-01  6.323e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.000e-02  1.046e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.229 18.719

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/503280/cmap_HighResolution_595209601_595814401_4FGL_J0224.9+1843_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e+00', job_status='DONE', photon_flux_upper_limit='1.31e-05', time_completed='2021-07-04 16:26:30.015342', job_id='503280', GAL2='0.94', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625441190.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.94', dlogl='-1.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.95' WHERE bin_id='589' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:26:30 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 503243: <4FGL_J0224.9+1843_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin589> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:31 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 16:11:32 2021
Terminated at Sun Jul  4 16:26:28 2021
Results reported at Sun Jul  4 16:26:28 2021

Your job looked like:

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

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 503280: <4FGL_J0224.9+1843_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin589> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:34 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 16:11:35 2021
Terminated at Sun Jul  4 16:26:33 2021
Results reported at Sun Jul  4 16:26:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin589 36.2294 18.7194 595209601 595814401 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 :                                   362.21 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             163.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

