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


Performing analysis on: 4FGL_J0226.5+0938_weekly_bin635
RA = 36.6313, Dec = 9.6351
tmin = 623030401, tmax = 623635201
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='524136', job_status='RUN', time_executed='2021-07-04 17:22:31.567573', time_epoch_executed='1625444551.57' WHERE source_name='4FGL J0226.5+0938' and cadence='weekly' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524136

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524136/ft1_4FGL_J0226.5+0938_weekly_bin635.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524136/ft1_4FGL_J0226.5+0938_weekly_bin635.fits outfile=/scratch/kocevski/524136/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin635.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=623030401.0 tmax=623635201.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.62
user 5.80
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.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/524136/ft1_filteredMKT_4FGL_J0226.5+0938_weekly_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.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 2.79
user 0.37
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/524136/ltcube_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.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/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits
.....................!
real 30.34
user 28.49
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/524136/ltcube_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.fits outfile=/scratch/kocevski/524136/expmap_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.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/524136/ltcube_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.fits
.....................!
real 204.15
user 186.14
sys 4.21

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/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits scfile=/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits outfile=/scratch/kocevski/524136/cmap_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.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 2.22
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits scfile=/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits outfile=/scratch/kocevski/524136/cmap_HighResolution_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.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 2.01
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524136/Model_4FGL_J0226.5+0938_weekly_bin635.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/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits.....................!
real 80.67
user 67.18
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits', '/scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits', expMap='/scratch/kocevski/524136/expmap_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.fits', expCube='/scratch/kocevski/524136/ltcube_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524136/Model_4FGL_J0226.5+0938_weekly_bin635.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/524136/ft1_filtered_4FGL_J0226.5+0938_weekly_bin635.fits
Spacecraft file(s): /scratch/kocevski/524136/ft2_4FGL_J0226.5+0938_weekly_bin635.fits
Exposure map: /scratch/kocevski/524136/expmap_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.fits
Exposure cube: /scratch/kocevski/524136/ltcube_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524136/Model_4FGL_J0226.5+0938_weekly_bin635.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.398       1.0000         .10000E-03   10000.    
     5 'norm      '    9.2486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.7827       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15906E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31368E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.626       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.537       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.261       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.211       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.861       1.0000         .10000E-03   10000.    
    20 'Prefactor '    154.16       1.0000         .10000E-03   10000.    
    21 'Prefactor '    106.19       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.121       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .85397       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.7362       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .25489       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0327       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4237.052     FROM MIGRAD    STATUS=CONVERGED   1343 CALLS     5015 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1250        .15734E-02** at limit **
   2  norm          .10000E-03    28.744        .18142E-02** at limit **
   3  Prefactor     .10000E-03    8.8719        .18142E-02** at limit **
   4  Prefactor     16.395        12.070        .98906E-04   -.25633E-04
   5  norm          9.2496        15.654        .13178E-03    .20273E-04
   6  Prefactor     .10000E-03    9.5785        .36285E-03** at limit **
   7  norm          4.7833        2.3075        .61498E-04   -.65626E-04
   8  Prefactor     .10009E-03    877.46        .36409E-03** at limit **
   9  Prefactor     .10000E-03    84.519        .18142E-02** at limit **
  10  Prefactor     .10000E-03    76.677        .88380E-01** at limit **
  11  Prefactor     28.347        106.49        .74880E-04   -.14636E-04
  12  Prefactor     27.542        37.007        .76343E-04   -.29932E-04
  13  Prefactor     25.226        37.196        .79703E-04    .13836E-04
  14  Prefactor     .10000E-03    5.6522        .15110E-02** at limit **
  15  Prefactor     49.260        34.525        .57164E-04    .12000E-03
  16  norm          .10000E-03    .64656        .87726E-03** at limit **
  17  Prefactor     .10000E-03    39.919        .18142E-02** at limit **
  18  Prefactor     .10000E-03    29.104        .18142E-02** at limit **
  19  norm          12.872        19.358        .11170E-03   -.26056E-04
  20  Prefactor     154.24        53.665        .32468E-04    .84667E-04
  21  Prefactor     106.05        90.721        .39025E-04   -.13051E-04
  22  Prefactor     35.113        33.029        .67622E-04    .24916E-04
  23  Prefactor     .85418        4.0457        .25449E-03   -.17824E-04
  24  norm          .10000E-03    7.4008        .17223E-02** at limit **
  25  norm          .10000E-03    1.6156        .80626E-03** at limit **
  26  Prefactor     .10000E-03    2.8043        .10625E-02** at limit **
  27  norm          7.7369        10.961        .14417E-03   -.64346E-04
  28  Normalizat    .25457        .35207        .73795E-03    .33276E-05
  29  Prefactor     1.0329        .15103        .16756E-03    .27343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3953
  norm       = 9.24957
  Prefactor  = 0.0001
  norm       = 4.78334
  Prefactor  = 0.000100089
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.3465
  Prefactor  = 27.5416
  Prefactor  = 25.2262
  Prefactor  = 0.0001
  Prefactor  = 49.26
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8724
  Prefactor  = 154.235
  Prefactor  = 106.053
  Prefactor  = 35.1126
  Prefactor  = 0.85418
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.73689
  Normalizat = 0.254567
  Prefactor  = 1.03285
 **********
 **   18 **HESSE 
 **********

 FCN=   4237.052     FROM HESSE     STATUS=OK           533 CALLS     5548 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1250        .31467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.395        12.069        .39562E-05   -1.4898    
   5  norm          9.2496        15.650        .52714E-05   -1.5100    
   6  Prefactor     .10000E-03    9.5789        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7833        2.3069        .24599E-05   -1.5271    
   8  Prefactor     .10009E-03    877.58        .72819E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    84.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.232        .95943E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.347        106.50        .14976E-04   -1.4643    
  12  Prefactor     27.542        36.647        .30537E-05   -1.4658    
  13  Prefactor     25.226        37.214        .31881E-05   -1.4703    
  14  Prefactor     .10000E-03    5.6523        .30221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.260        34.518        .11433E-04   -1.4303    
  16  norm          .10000E-03    .64677        .17545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.872        19.358        .44678E-05   -1.4990    
  20  Prefactor     154.24        53.662        .64936E-05   -1.3218    
  21  Prefactor     106.05        90.708        .78051E-05   -1.3645    
  22  Prefactor     35.113        33.029        .13524E-04   -1.4522    
  23  Prefactor     .85418        4.0440        .10180E-04   -1.5523    
  24  norm          .10000E-03    7.4029        .34447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.6156        .16125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8044        .21251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.7369        10.960        .57668E-05   -1.5152    
  28  Normalizat    .25457        .35153        .29518E-04   -1.2566    
  29  Prefactor     1.0329        .15087        .67025E-05   -.91642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1024e-10
Minuit parameter uncertainties:
  1  2.09867e-06
  2  1.97992e-05
  3  2.01489e-06
  4  12.0711
  5  15.6566
  6  8.06448e-05
  7  2.3069
  8  0.0179533
  9  3.7851e-05
  10  0.000496484
  11  107.227
  12  36.6766
  13  37.2478
  14  1.76422e-05
  15  34.5323
  16  3.1143e-06
  17  4.41885e-06
  18  0.00021983
  19  19.3673
  20  53.6785
  21  90.8272
  22  33.0466
  23  3.71737
  24  1.44438e-05
  25  4.82421e-06
  26  6.55089e-06
  27  10.9628
  28  0.354636
  29  0.150936
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  2.835e+01  1.072e+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:  1.033e+00  1.509e-01  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:  2.546e-01  3.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524136/likelihoodResults_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.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) = 4237.01399235
delta logL = 0.0375339623506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4237.01106739
delta logL = 0.0404589270447

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4237.011     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.361        87.468        .82594E-04   -.64281E-04
   2  Index         2.5977        1.6501        .92489E-02    .13321E-03
   3  Normalizat    .24655        .31230        .74881E-03    .75912E-05
   4  Prefactor     1.0334        .13905        .16748E-03   -.91597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3613
  Index      = 2.59771
  Normalizat = 0.24655
  Prefactor  = 1.03337
 **********
 **   18 **HESSE 
 **********

 FCN=   4237.011     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.361        80.788        .16519E-04   -1.4741    
   2  Index         2.5977        1.5278        .18498E-02   -.50118    
   3  Normalizat    .24655        .31178        .29952E-04   -1.2618    
   4  Prefactor     1.0334        .13884        .33497E-04   -.91625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21059e-10
Minuit parameter uncertainties:
  1  81.1696
  2  1.56055
  3  0.314009
  4  0.138884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524136': 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) = 4237.01099858
delta logL = 0.0405277390173

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  2.336e+01  8.117e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.598e+00  1.561e+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:  1.033e+00  1.389e-01  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:  2.466e-01  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/524136/cmap_HighResolution_623030401_623635201_4FGL_J0226.5+0938_weekly_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.76e-07', time_completed='2021-07-04 17:35:41.647130', job_id='524136', GAL2='1.03', fit_tolerance='1e-08', EG2='0.25', EG='0.25', time_epoch_completed='1625445341.65', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.05e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='635' AND source_name='4FGL J0226.5+0938' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 17:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 524136: <4FGL_J0226.5+0938_weekly_bin635> in cluster <slac> Done

Job <4FGL_J0226.5+0938_weekly_bin635> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Jul  4 17:19:21 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 17:19:22 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:22 2021
Terminated at Sun Jul  4 17:35:43 2021
Results reported at Sun Jul  4 17:35:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_weekly_bin635 36.6313 9.6351 623030401 623635201 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 :                                   727.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

