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 226 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_J0226.5+0938_weekly_bin589
RA = 36.6313, Dec = 9.6351
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='524067', job_status='RUN', time_executed='2021-07-04 17:25:49.052482', time_epoch_executed='1625444749.05' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524067

Creating custom pfile directory:
/scratch/kocevski/524067/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/524067/ft1_4FGL_J0226.5+0938_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/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524067/ft1_4FGL_J0226.5+0938_weekly_bin589.fits outfile=/scratch/kocevski/524067/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin589.fits ra=36.6313 dec=9.6351 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.31
user 5.47
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_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/524067/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_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 3.61
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/524067/ltcube_595209601_595814401_4FGL_J0226.5+0938_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/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits
.....................!
real 27.75
user 27.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/524067/ltcube_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.fits outfile=/scratch/kocevski/524067/expmap_595209601_595814401_4FGL_J0226.5+0938_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/524067/ltcube_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.fits
.....................!
real 210.76
user 187.42
sys 4.94

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

Setting source of interest to:
4FGL J0226.5+0938 @ 36.6313 9.6351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits scfile=/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits outfile=/scratch/kocevski/524067/cmap_595209601_595814401_4FGL_J0226.5+0938_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.6313 yref=9.6351 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.09
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits scfile=/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits outfile=/scratch/kocevski/524067/cmap_HighResolution_595209601_595814401_4FGL_J0226.5+0938_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.6313 yref=9.6351 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.92
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524067/Model_4FGL_J0226.5+0938_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/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits..............!
real 24.06
user 14.17
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits', '/scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits', expMap='/scratch/kocevski/524067/expmap_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.fits', expCube='/scratch/kocevski/524067/ltcube_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524067/Model_4FGL_J0226.5+0938_weekly_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.5+0938'

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.451e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524067/ft1_filtered_4FGL_J0226.5+0938_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/524067/ft2_4FGL_J0226.5+0938_weekly_bin589.fits
Exposure map: /scratch/kocevski/524067/expmap_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.fits
Exposure cube: /scratch/kocevski/524067/ltcube_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524067/Model_4FGL_J0226.5+0938_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) = 193.862519766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .56967E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57130E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .36845E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53723E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    412.78       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .63432E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.738       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83000E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60918E-01   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 '    4.1475       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 '    2.5180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.414       1.0000         .10000E-03   10000.    
    24 'norm      '    .12568E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .85879       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6270       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   192.2917     FROM MIGRAD    STATUS=CONVERGED    328 CALLS      750 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0802       -.20051E-07** at limit **
   2  norm          .10000E-03    83.811       -.12059E-05** at limit **
   3  Prefactor     .10000E-03    77.628        .25982E-05** at limit **
   4  Prefactor     .10000E-03    12.941       -.61831E-06** at limit **
   5  norm          .10000E-03    30.319        .95153E-07** at limit **
   6  Prefactor     .10000E-03    29.304       -.14156E-06** at limit **
   7  norm          .10000E-03    1.4468        .71937E-07** at limit **
   8  Prefactor     .10000E-03    975.51       -.15316E-04** at limit **
   9  Prefactor     .10001E-03    2153.4       -.24014E-04** at limit **
  10  Prefactor     .10000E-03    156.07        .33745E-06** at limit **
  11  Prefactor     .10022E-03    8099.9        .65980E-04** at limit **
  12  Prefactor     .10000E-03    1216.5        .17888E-05** at limit **
  13  Prefactor     1866.3        2077.2       -.23537E-04    .75364E-05
  14  Prefactor     .10004E-03    8361.0        .55165E-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    226.59        .94440E-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     2.5180        1.0212         .0000         .0000    
  23  Prefactor     47.635        74.422        .22797E-05    .88564E-05
  24  norm          .10000E-03    316.56        .92253E-06** at limit **
  25  norm          .10000E-03    505.59        .21581E-05** at limit **
  26  Prefactor     .10000E-03    42.876        .28857E-06** at limit **
  27  norm          4.6270        1.0060         .0000         .0000    
  28  Normalizat    .10000E-01    .32144       -.39988E-05** at limit **
  29  Prefactor     .96540        .29492        .16733E-05    .17663E-04
                               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.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100224
  Prefactor  = 0.0001
  Prefactor  = 1866.33
  Prefactor  = 0.000100039
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 3.22138
  Prefactor  = 0.0001
  norm       = 4.10648
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 2.51803
  Prefactor  = 47.6346
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.62701
  Normalizat = 0.01
  Prefactor  = 0.9654
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   192.2917     FROM HESSE     STATUS=FAILED        65 CALLS      815 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    84.260        .93040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.096        .10545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    29.159        .10650E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.711        .10561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4381        .73589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    969.40        .50269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    2140.1        .53983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    151.08        .10517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10022E-03    8163.2        .25240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1211.5        .94299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1866.3        2093.3        .11951E-02   -.67735    
  14  Prefactor     .10004E-03    8368.4        .93232E-02   -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    .61207E-01    .94440E-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     2.5180        1.0212         .0000       -1.5391    
  23  Prefactor     47.635        1.0024        .22797E-05   -1.4327    
  24  norm          .10000E-03    .20571        .92253E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .40051        .21581E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20571        .28857E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6270        1.0060         .0000       -1.5278    
  28  Normalizat    .10000E-01    .25725       -.39988E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .96540        1.3087        .16733E-05   -.93892    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.02292e-11
Minuit parameter uncertainties:
  1  8.86478e-07
  2  4.84954e-05
  3  0.000359132
  4  1.99606e-05
  5  4.1092e-07
  6  4.60446e-06
  7  7.59692e-08
  8  0.000853059
  9  0.00928007
  10  7.56042e-05
  11  0.0870633
  12  0.00155278
  13  2209.87
  14  0.0377854
  15  1.0371
  16  1.04876
  17  1.01258
  18  1.22253e-07
  19  1.00761
  20  1.01279
  21  1.00331
  22  1.02121
  23  1.00236
  24  5.04775e-07
  25  2.11462e-06
  26  2.42553e-08
  27  1.00596
  28  4.27322e-07
  29  1.3558
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.002e-04  8.706e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.654e-01  1.356e+00  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  4.273e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.35419614278

TS (Fixed Index): -0.00
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.59e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524067/likelihoodResults_595209601_595814401_4FGL_J0226.5+0938_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): 0
logL (Free Index) = 192.292910941
delta logL = -0.00123543458866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 192.292910941
delta logL = -0.00123543439062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   192.2929     FROM MIGRAD    STATUS=CONVERGED     21 CALLS       81 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1517        8.9052        .50000       -.17951E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.1517
 **********
 **   18 **HESSE 
 **********

 FCN=   192.2929     FROM HESSE     STATUS=OK             9 CALLS       90 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.1517        3.4579        .20000       -.60609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18856e-12
Minuit parameter uncertainties:
  1  4.1094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524067': 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) = 192.292910941
delta logL = -0.00123543419224

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  9.633e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
258        Index:  2.152e+00  4.109e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.655e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): -0.00
Ra Dec: 36.631 9.635

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/524067/cmap_HighResolution_595209601_595814401_4FGL_J0226.5+0938_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.59e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-07-04 17:32:36.698279', job_id='524067', GAL2='0.97', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625445156.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.97', dlogl='-1.24e-03', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='589' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:32:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 524067: <4FGL_J0226.5+0938_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0226.5+0938_weekly_bin589> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Jul  4 17:19:16 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:19:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 17:19:18 2021
Terminated at Sun Jul  4 17:32:41 2021
Results reported at Sun Jul  4 17:32:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_weekly_bin589 36.6313 9.6351 595209601 595814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   357.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

