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 63 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17314
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0224.9+1843_weekly_bin507
RA = 36.2294, Dec = 18.7194
tmin = 545616001, tmax = 546220801
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='502979', job_status='RUN', time_executed='2021-07-04 16:14:54.995826', time_epoch_executed='1625440495.0' WHERE source_name='4FGL J0224.9+1843' and cadence='weekly' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502979

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502979/ft1_4FGL_J0224.9+1843_weekly_bin507.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502979/ft2_4FGL_J0224.9+1843_weekly_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502979/ft1_4FGL_J0224.9+1843_weekly_bin507.fits outfile=/scratch/kocevski/502979/ft1_filteredMKT_4FGL_J0224.9+1843_weekly_bin507.fits ra=36.2294 dec=18.7194 rad=12.0 tmin=545616001.0 tmax=546220801.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 9.34
user 8.36
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502979/ft1_filtered_4FGL_J0224.9+1843_weekly_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/502979/ft2_4FGL_J0224.9+1843_weekly_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/502979/ltcube_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.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/502979/ft2_4FGL_J0224.9+1843_weekly_bin507.fits
.....................!
real 28.65
user 25.95
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502979/ft1_filtered_4FGL_J0224.9+1843_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/502979/ft2_4FGL_J0224.9+1843_weekly_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/502979/ltcube_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.fits outfile=/scratch/kocevski/502979/expmap_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.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/502979/ltcube_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.fits
.....................!
real 206.32
user 185.59
sys 5.46

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/502979/ft1_filtered_4FGL_J0224.9+1843_weekly_bin507.fits scfile=/scratch/kocevski/502979/ft2_4FGL_J0224.9+1843_weekly_bin507.fits outfile=/scratch/kocevski/502979/cmap_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.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.59
user 0.40
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502979/ft1_filtered_4FGL_J0224.9+1843_weekly_bin507.fits scfile=/scratch/kocevski/502979/ft2_4FGL_J0224.9+1843_weekly_bin507.fits outfile=/scratch/kocevski/502979/cmap_HighResolution_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.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.14
user 0.40
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2309       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0430       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14430E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.354       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35117E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82210       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58635E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    392.76       1.0000         .10000E-03   10000.    
    12 'Prefactor '    98.592       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59193E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .74629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31042E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14599E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2310       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69412E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    48.914       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .97016E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19771E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .49489E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .70363E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    50.753       1.0000         .10000E-03   10000.    
    28 'Prefactor '    49.126       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98451       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   782.9174     FROM MIGRAD    STATUS=CONVERGED    311 CALLS      647 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2309        1.0046         .0000         .0000    
   2  Prefactor     .42791        .38032       -.21192E-03    .18360E-02
   3  Prefactor     .10000E-03    .20571        .90733E-06** at limit **
   4  Prefactor     4.0135        .80055        .53950E-05    .53641E-03
   5  Prefactor     19.883        1.0139        .33989E-07    .18798E-04
   6  norm          .10000E-03    .20571       -.11813E-06** at limit **
   7  Prefactor     .10000E-03    .24135       -.16749E-05** at limit **
   8  Prefactor     1.1545        1.3453       -.13457E-06   -.17737E-05
   9  norm          .10575        .17813       -.18861E-03    .95451E-03
  10  Prefactor     .10000E-03    .22501       -.31464E-05** at limit **
  11  Prefactor     394.61        1.0023       -.24138E-04   -.23548E-01
  12  Prefactor     102.09        1.0174       -.77887E-06    .12042E-03
  13  Prefactor     .10000E-03    .22468        .15676E-05** at limit **
  14  Prefactor     .10000E-03    .37443       -.11988E-05** at limit **
  15  Prefactor     .10000E-03    .24480        .39364E-06** at limit **
  16  Prefactor     .10000E-03    .20571        .92155E-06** at limit **
  17  Prefactor     .10000E-03    .20571        .13456E-06** at limit **
  18  norm          8.8491        1.0016         .0000         .0000    
  19  Prefactor     .10000E-03    .20683        .56927E-05** at limit **
  20  norm          4.3908        1.0260        .14637E-06    .94647E-05
  21  Prefactor     .10000E-03    .21923        .28821E-06** at limit **
  22  norm          53.447        1.0451       -.13533E-05   -.35291E-04
  23  Prefactor     .10000E-03    .22548        .46867E-06** at limit **
  24  Prefactor     .10000E-03    .25601        .52214E-06** at limit **
  25  Prefactor     .10000E-03    .21472       -.16867E-05** at limit **
  26  Prefactor     .10000E-03    .21835       -.96805E-06** at limit **
  27  norm          40.486        .89364       -.65558E-06   -.53378E-04
  28  Prefactor     1154.6        4.5710       -.13892E-04    .17213E-03
  29  Normalizat    .10000E-01    .25505        .95121E-05** at limit **
  30  Prefactor     .91894        1.2844        .33401E-05   -.15964E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.23088
  Prefactor  = 0.427908
  Prefactor  = 0.0001
  Prefactor  = 4.01347
  Prefactor  = 19.8834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15452
  norm       = 0.105755
  Prefactor  = 0.0001
  Prefactor  = 394.614
  Prefactor  = 102.092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84905
  Prefactor  = 0.0001
  norm       = 4.39078
  Prefactor  = 0.0001
  norm       = 53.4466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.4859
  Prefactor  = 1154.57
  Normalizat = 0.01
  Prefactor  = 0.918941
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   782.9174     FROM HESSE     STATUS=FAILED        11 CALLS      658 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     529.22        523.94         .0000       -1.5251    
   2  Prefactor     .42791        .38032       -.21192E-03   -1.5577    
   3  Prefactor     .10000E-03    .20571        .90733E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0135        .80055        .53950E-05   -1.5307    
   5  Prefactor     19.883        1.0139        .33989E-07   -1.4816    
   6  norm          .10000E-03    .20571       -.11813E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .24135       -.16749E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1545        1.3453       -.13457E-06   -1.5493    
   9  norm          .10575        .17813       -.18861E-03   -1.5643    
  10  Prefactor     .10000E-03    .22501       -.31464E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     394.61        1.0023       -.24138E-04   -1.1708    
  12  Prefactor     102.09        1.0174       -.77887E-06   -1.3684    
  13  Prefactor     .10000E-03    .22468        .15676E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .37443       -.11988E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .24480        .39364E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571        .92155E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571        .13456E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8491        1.0016         .0000       -1.5113    
  19  Prefactor     .10000E-03    .20683        .56927E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.3908        1.0260        .14637E-06   -1.5289    
  21  Prefactor     .10000E-03    .21923        .28821E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          53.447        1.0451       -.13533E-05   -1.4245    
  23  Prefactor     .10000E-03    .22548        .46867E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .25601        .52214E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .21472       -.16867E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .21835       -.96805E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          40.486        .89364       -.65558E-06   -1.4435    
  28  Prefactor     1154.6        4.5710       -.13892E-04   -.87741    
  29  Normalizat    .10000E-01    .25505        .95121E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .91894        1.2844        .33401E-05   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.98122e-10
Minuit parameter uncertainties:
  1  1.00464
  2  0.380324
  3  7.27062e-07
  4  0.800557
  5  1.0139
  6  9.67804e-08
  7  2.66372e-06
  8  1.34533
  9  0.178128
  10  3.52156e-06
  11  1.00227
  12  1.01743
  13  1.5225e-06
  14  2.37719e-05
  15  3.67235e-07
  16  7.55403e-07
  17  1.2026e-07
  18  1.0016
  19  6.96046e-06
  20  1.026
  21  3.44355e-07
  22  1.04513
  23  1.28867e-08
  24  2.44584e-07
  25  1.96173e-06
  26  9.99322e-07
  27  0.893645
  28  4.57098
  29  3.27166e-07
  30  1.33095
Done.

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

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  3.946e+02  1.002e+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

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.189e-01  1.331e+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  3.272e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.82
Ra Dec: 36.229 18.719
Photon Flux Upper Limit: 3.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502979/likelihoodResults_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.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) = 782.510151794
delta logL = 0.407205341735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 782.499705116
delta logL = 0.417652019643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    417.04       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0961       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91194       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.

 FCN=   782.4997     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      193 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     417.04        436.99        .50022E-03   -.41785E-04
   2  Index         2.0961        .69226        .10843       -.34919E-04
   3  Normalizat    .10000E-01    .33442        .24209    ** at limit **
   4  Prefactor     .91194        .19005        .45157E-01   -.16837E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 417.038
  Index      = 2.09607
  Normalizat = 0.01
  Prefactor  = 0.911937
 **********
 **   18 **HESSE 
 **********

 FCN=   782.4997     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     417.04        475.80        .10004E-03   -1.1595    
   2  Index         2.0961        .78317        .46206E-02   -.61969    
   3  Normalizat    .10000E-01    .37981        .95145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91194        .18001        .16987E-03   -.95725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.437e-10
Minuit parameter uncertainties:
  1  480.413
  2  0.788088
  3  1.06133e-05
  4  0.180129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502979': 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) = 782.499705109
delta logL = 0.417652026255

Extracting fit parameters...

4FGL J0224.9+1843
   Spectrum: PowerLaw
253    Prefactor:  4.170e+02  4.804e+02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.096e+00  7.881e-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.119e-01  1.801e-01  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.061e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 36.229 18.719
Photon Index (Free Index): 2.10 +/- 0.79
Photon Flux (Free Index): 4.41e-07 +/- 5.51e-07
Energy Flux (Free Index): 2.44e-04 +/- 3.56e-04

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/502979/cmap_HighResolution_545616001_546220801_4FGL_J0224.9+1843_weekly_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-01', comment='SUCCESS', energy_flux2='2.44e-04', dlogl='4.18e-01', photon_flux2='4.41e-07', job_status='DONE', time_completed='2021-07-04 16:22:23.668546', photon_index_error2='0.79', photon_index2='2.10', ts='0.82', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='3.04e-06', energy_flux_error2='3.56e-04', EG='0.01', time_epoch_completed='1625440943.67', return_code='101', job_id='502979', GAL2='0.91', EG2='0.01', return_code2='0', photon_flux_error2='5.51e-07', ts2='1.66', photon_index='2.95' WHERE bin_id='507' AND source_name='4FGL J0224.9+1843' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:22:23 PDT 2021




------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 503042: <4FGL_J0224.9+1843_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin507> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:17 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:19 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:19 2021
Terminated at Sun Jul  4 16:22:24 2021
Results reported at Sun Jul  4 16:22:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin507 36.2294 18.7194 545616001 546220801 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 :                                   390.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            667 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 502979: <4FGL_J0224.9+1843_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0224.9+1843_weekly_bin507> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 16:11:12 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 16:11:16 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:16 2021
Terminated at Sun Jul  4 16:22:27 2021
Results reported at Sun Jul  4 16:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.9+1843_weekly_bin507 36.2294 18.7194 545616001 546220801 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 :                                   387.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            675 sec.

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

