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


Performing analysis on: 4FGL_J0224.2+0700_weekly_bin589
RA = 36.0577, Dec = 7.0126
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='496921', job_status='RUN', time_executed='2021-07-04 15:59:24.717139', time_epoch_executed='1625439564.72' WHERE source_name='4FGL J0224.2+0700' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496921

Creating custom pfile directory:
/scratch/kocevski/496921/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/496921/ft1_4FGL_J0224.2+0700_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/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496921/ft1_4FGL_J0224.2+0700_weekly_bin589.fits outfile=/scratch/kocevski/496921/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin589.fits ra=36.0577 dec=7.0126 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 7.92
user 5.59
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_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/496921/ft1_filteredMKT_4FGL_J0224.2+0700_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_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.61
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/496921/ltcube_595209601_595814401_4FGL_J0224.2+0700_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/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits
.....................!
real 29.65
user 27.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/496921/ltcube_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.fits outfile=/scratch/kocevski/496921/expmap_595209601_595814401_4FGL_J0224.2+0700_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/496921/ltcube_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.fits
.....................!
real 198.23
user 186.08
sys 4.49

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0224.2+0700 @ 36.0577 7.0126

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits scfile=/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits outfile=/scratch/kocevski/496921/cmap_595209601_595814401_4FGL_J0224.2+0700_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.0577 yref=7.0126 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 4.41
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits scfile=/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits outfile=/scratch/kocevski/496921/cmap_HighResolution_595209601_595814401_4FGL_J0224.2+0700_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.0577 yref=7.0126 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 2.20
user 0.41
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496921/Model_4FGL_J0224.2+0700_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/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits....................!
real 31.78
user 14.59
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits', '/scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits', expMap='/scratch/kocevski/496921/expmap_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.fits', expCube='/scratch/kocevski/496921/ltcube_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496921/Model_4FGL_J0224.2+0700_weekly_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0224.2+0700'

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  3.952e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496921/ft1_filtered_4FGL_J0224.2+0700_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/496921/ft2_4FGL_J0224.2+0700_weekly_bin589.fits
Exposure map: /scratch/kocevski/496921/expmap_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.fits
Exposure cube: /scratch/kocevski/496921/ltcube_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496921/Model_4FGL_J0224.2+0700_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) = 282.935476465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13828E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13363E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .88442E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    417.49       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21201E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .47792       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37175       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2553       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1065       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .79481E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.476       1.0000         .10000E-03   10000.    
    24 'norm      '    .39416E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0559       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6270       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   281.2891     FROM MIGRAD    STATUS=CONVERGED    307 CALLS      693 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.237        .88637E-06** at limit **
   2  norm          .10000E-03    79.196       -.82986E-05** at limit **
   3  Prefactor     .10000E-03    55.429       -.29787E-06** at limit **
   4  Prefactor     .10000E-03    10.012        .30769E-07** at limit **
   5  norm          .10000E-03    29.435       -.57822E-07** at limit **
   6  Prefactor     .10000E-03    27.487       -.82287E-06** at limit **
   7  norm          .10000E-03    1.5281       -.29811E-09** at limit **
   8  Prefactor     .10000E-03    885.23       -.16442E-04** at limit **
   9  Prefactor     .10000E-03    6589.7       -.14540E-04** at limit **
  10  Prefactor     .10000E-03    159.16        .12382E-04** at limit **
  11  Prefactor     .10000E-03    8070.7        .19413E-03** at limit **
  12  Prefactor     .10000E-03    1282.5        .23864E-05** at limit **
  13  Prefactor     1932.9        2168.9       -.14709E-04    .11162E-05
  14  Prefactor     .10001E-03    8388.3       -.15124E-04** at limit **
  15  Prefactor     1.9562        1.0371         .0000         .0000    
  16  norm          1.7400        1.0487         .0000         .0000    
  17  Prefactor     3.2214        1.0126         .0000         .0000    
  18  Prefactor     .10000E-03    220.51       -.41781E-06** at limit **
  19  norm          4.1065        1.0076         .0000         .0000    
  20  Prefactor     3.1966        1.0128         .0000         .0000    
  21  Prefactor     6.1829        1.0033         .0000         .0000    
  22  Prefactor     .10000E-03    71.149        .67147E-07** at limit **
  23  Prefactor     42.601        70.820       -.14731E-06   -.92023E-06
  24  norm          .10000E-03    315.31       -.87854E-06** at limit **
  25  norm          .10000E-03    512.65        .13502E-05** at limit **
  26  Prefactor     .10000E-03    36.332       -.17392E-06** at limit **
  27  norm          4.6270        1.0060         .0000         .0000    
  28  Normalizat    .10000E-01    .17308       -.72002E-05** at limit **
  29  Prefactor     1.0171        .26125       -.17524E-05   -.61876E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1932.93
  Prefactor  = 0.000100007
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 3.22138
  Prefactor  = 0.0001
  norm       = 4.10648
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 0.0001
  Prefactor  = 42.6013
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.62701
  Normalizat = 0.01
  Prefactor  = 1.01712
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   281.2891     FROM HESSE     STATUS=FAILED        65 CALLS      758 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    78.975        .10267E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    55.087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.9707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    28.212        .10420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    894.58        .49996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6591.9        .38243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    156.11        .10088E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8060.7        .25951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1271.6        .11180E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1932.9        2166.0        .14215E-02   -.66038    
  14  Prefactor     .10001E-03    8391.1        .10735E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     569.71        567.62         .0000       -1.5428    
  16  norm          1.7400        1.0487         .0000       -1.5444    
  17  Prefactor     3.2214        1.0126         .0000       -1.5349    
  18  Prefactor     .10000E-03    .11694       -.41781E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1065        1.0076         .0000       -1.5303    
  20  Prefactor     3.1966        1.0128         .0000       -1.5350    
  21  Prefactor     6.1829        1.0033         .0000       -1.5211    
  22  Prefactor     .10000E-03    .22151        .67147E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.601        1.0015       -.14731E-06   -1.4402    
  24  norm          .10000E-03    .23796       -.87854E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .35861        .13502E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20571       -.17392E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6270        1.0060         .0000       -1.5278    
  28  Normalizat    .10000E-01    .25505       -.72002E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.0171        1.2288       -.17524E-05   -.92161    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.61647e-12
Minuit parameter uncertainties:
  1  6.35268e-06
  2  7.28976e-05
  3  2.00213e-05
  4  2.7964e-07
  5  5.15035e-08
  6  6.36383e-06
  7  2.013e-08
  8  0.000659027
  9  0.000426809
  10  0.000506147
  11  0.00345011
  12  8.92646e-05
  13  2292.61
  14  0.0157037
  15  1.0371
  16  1.04876
  17  1.01258
  18  1.34589e-07
  19  1.00761
  20  1.01279
  21  1.00331
  22  3.60209e-07
  23  1.00153
  24  1.34171e-06
  25  1.00392e-06
  26  1.38258e-08
  27  1.00596
  28  1.0957e-07
  29  1.26545
Done.

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

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  6.590e-04  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.502e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.017e+00  1.265e+00  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.000e-02  1.096e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.058 7.013
Photon Flux Upper Limit: 3.98e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496921/likelihoodResults_595209601_595814401_4FGL_J0224.2+0700_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) = 281.289102026
delta logL = -5.23044747069e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 281.289101961
delta logL = -5.16529217975e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96308E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5022       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0171       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   281.2891     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      203 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1965.0        .90718E-02** at limit **
   2  Index         2.5003        8.7057        .50000        .18156E-07
   3  Normalizat    .10000E-01    .77659E-03    .97628E-01** at limit **
   4  Prefactor     1.0171        .17608E-01    .31902E-01   -.30675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50033
  Normalizat = 0.01
  Prefactor  = 1.01712
 **********
 **   18 **HESSE 
 **********

 FCN=   281.2891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      232 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8626.6        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5003        8.5420        .50000       -.52352    
   3  Normalizat    .10000E-01    .39884E-02    .21342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0171        .39429E-01    .14100E-03   -.92161    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.67468e-10
Minuit parameter uncertainties:
  1  0.00282595
  2  4264.4
  3  5.68513e-09
  4  0.03943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496921': 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) = 281.289096795
delta logL = 4.37694325228e-12

Extracting fit parameters...

4FGL J0224.2+0700
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.826e-03  1.000e-04  1.000e+04 ( 1.000e-13)
252        Index:  2.500e+00  4.264e+03  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.017e+00  3.943e-02  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.000e-02  5.685e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.058 7.013

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/496921/cmap_HighResolution_595209601_595814401_4FGL_J0224.2+0700_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-01', job_status='DONE', photon_flux_upper_limit='3.98e-06', time_completed='2021-07-04 16:08:43.166926', job_id='496921', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625440123.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.02', dlogl='4.38e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='589' AND source_name='4FGL J0224.2+0700' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 16:08:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 496921: <4FGL_J0224.2+0700_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0224.2+0700_weekly_bin589> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 15:54:39 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 15:54:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 15:54:41 2021
Terminated at Sun Jul  4 16:08:53 2021
Results reported at Sun Jul  4 16:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0224.2+0700_weekly_bin589 36.0577 7.0126 595209601 595814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0224.2+0700 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   360.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

