aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 112 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 = 7326
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1667
RA = 36.6313, Dec = 9.6351
tmin = 671414401, tmax = 671673601
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='476000', job_status='RUN', time_executed='2022-04-15 03:11:37.883092', time_epoch_executed='1650017497.88' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476000/ft1_4FGL_J0226.5+0938_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476000/ft1_4FGL_J0226.5+0938_daily_bin1667.fits outfile=/scratch/kocevski/476000/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1667.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=671414401.0 tmax=671673601.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 3.55
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.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/476000/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.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 0.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 791

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/476000/ltcube_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.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/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits
.....................!
real 14.42
user 14.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/476000/ltcube_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.fits outfile=/scratch/kocevski/476000/expmap_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.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/476000/ltcube_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.fits
.....................!
real 194.54
user 189.02
sys 4.82

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/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.fits scfile=/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits outfile=/scratch/kocevski/476000/cmap_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.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 0.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.fits scfile=/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits outfile=/scratch/kocevski/476000/cmap_HighResolution_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.fits', '/scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits', expMap='/scratch/kocevski/476000/expmap_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.fits', expCube='/scratch/kocevski/476000/ltcube_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476000/Model_4FGL_J0226.5+0938_daily_bin1667.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/476000/ft1_filtered_4FGL_J0226.5+0938_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/476000/ft2_4FGL_J0226.5+0938_daily_bin1667.fits
Exposure map: /scratch/kocevski/476000/expmap_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.fits
Exposure cube: /scratch/kocevski/476000/ltcube_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476000/Model_4FGL_J0226.5+0938_daily_bin1667.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) = 8786.21182806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1343       1.0000         .10000E-03   10000.    
     2 'norm      '    .11137E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9640       1.0000         .10000E-03   10000.    
     5 'norm      '    9.2238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4870       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.992       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.863       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .87570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5548       1.0000         .10000E-03   10000.    
    19 'norm      '    .57333E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5780       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7925       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4738       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5773       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19800       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2924       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96836       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8786.205     FROM MIGRAD    STATUS=FAILED      1320 CALLS     4959 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1343        4.6711        .17743E-03   -.22042E-04
   2  norm          .10067E-03    11.919        .10794    ** at limit **
   3  Prefactor     .10000E-03    3.6777        .17471E-02** at limit **
   4  Prefactor     4.9640        2.8758        .11580E-03   -.32006E-04
   5  norm          9.2231        6.9790        .13196E-03    .22399E-05
   6  Prefactor     4.4870        2.5975        .10934E-03    .70082E-04
   7  norm          2.6087        1.1076        .60569E-04   -.52555E-04
   8  Prefactor     .10000E-03    22.930        .18142E-02** at limit **
   9  Prefactor     74.009        50.486        .46676E-04    .47837E-04
  10  Prefactor     .10000E-03    3.0710        .16013E-02** at limit **
  11  Prefactor     17.866        51.438        .94763E-04    .13437E-04
  12  Prefactor     .10000E-03    5.0262        .18142E-02** at limit **
  13  Prefactor     .10000E-03    23.938        .18142E-02** at limit **
  14  Prefactor     12.737        10.195        .11224E-03    .93999E-04
  15  Prefactor     .10000E-03    9.5868        .18142E-02** at limit **
  16  norm          .87612        .51017        .46276E-04   -.91045E-03
  17  Prefactor     .10000E-03    12.445        .18142E-02** at limit **
  18  Prefactor     9.5548        14.055        .12965E-03    .13504E-04
  19  norm          .10058E-03    56.445        .41744E-02** at limit **
  20  Prefactor     .32113        23.984        .96393E-01    .46964E-03
  21  Prefactor     .10000E-03    21.522        .18142E-02** at limit **
  22  Prefactor     2.5841        34.056        .25419E-03   -.71560E-06
  23  Prefactor     1.7924        3.0254        .20786E-03   -.19471E-04
  24  norm          3.4729        9.2578        .10848E-02   -.22974E-03
  25  norm          4.5771        4.2094        .17470E-03    .49849E-04
  26  Prefactor     .19801        44.211        .38284E-02    .18131E-02
  27  norm          .10000E-03    3.7324        .17629E-02** at limit **
  28  Normalizat    1.2924        .23631        .34560E-03    .60527E-04
  29  Prefactor     .96842        .11481        .19620E-03   -.13837E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8786.205     FROM SIMPLEX   STATUS=UNCHANGED   1372 CALLS     6331 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1343        4.6711        .34595E-06   -1.5255    
   2  norm          .10067E-03    11.919        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6777        .25539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9640        2.8758        .11072E-06   -1.5262    
   5  norm          9.2231        6.9790        .10375E-06   -1.5100    
   6  Prefactor     4.4870        2.5975        .10957E-06   -1.5284    
   7  norm          2.6087        1.1076        .11272E-06   -1.5385    
   8  Prefactor     .10000E-03    22.930        .59511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     74.009        50.486        .10417E-06   -1.3985    
  10  Prefactor     .10000E-03    3.0710        .19630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.866        51.438        .10832E-06   -1.4862    
  12  Prefactor     .10000E-03    5.0262        .11396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.938        .55586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.737        10.195        .11142E-06   -1.4994    
  15  Prefactor     .10000E-03    9.5868        .20067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .87612        .51017        .11558E-06   -1.5521    
  17  Prefactor     .10000E-03    12.445        .53660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5548        14.055        .11224E-06   -1.5090    
  19  norm          .10058E-03    56.445        .14927E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .32113        23.984        .11842E-06   -1.5595    
  21  Prefactor     .10000E-03    21.522        .38339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5841        34.056        .10610E-06   -1.5386    
  23  Prefactor     1.7924        3.0254        .11450E-06   -1.5440    
  24  norm          3.4729        9.2578        .11410E-06   -1.5335    
  25  norm          4.5771        4.2094        .11320E-06   -1.5280    
  26  Prefactor     .19801        44.211        .11715E-06   -1.5619    
  27  norm          .10000E-03    3.7324        .20872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2924        .23631        .62052E-07   -.83795    
  29  Prefactor     .96842        .11481        .69741E-07   -.93790    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8786.205     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     6882 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1343        4.6710        .70971E-05    .15378E-04
   2  norm          .10052E-03    11.991        .10732    ** at limit **
   3  Prefactor     .10000E-03    3.6789        .34942E-03** at limit **
   4  Prefactor     4.9640        2.8755        .46319E-05    .72651E-04
   5  norm          9.2231        6.9777        .52785E-05    .75813E-04
   6  Prefactor     4.4870        2.5974        .43734E-05    .94621E-04
   7  norm          2.6087        1.1075        .24228E-05    .48801E-04
   8  Prefactor     .10000E-03    22.937        .36285E-03** at limit **
   9  Prefactor     74.009        50.470        .93351E-05    .99863E-04
  10  Prefactor     .10000E-03    3.0713        .32026E-03** at limit **
  11  Prefactor     17.866        51.431        .37905E-05    .83979E-05
  12  Prefactor     .10000E-03    5.0275        .36285E-03** at limit **
  13  Prefactor     .10000E-03    23.952        .36285E-03** at limit **
  14  Prefactor     12.737        10.192        .44895E-05    .12155E-03
  15  Prefactor     .10000E-03    9.5938        .36285E-03** at limit **
  16  norm          .87613        .50807        .18511E-05    .19555E-02
  17  Prefactor     .10000E-03    12.445        .36285E-03** at limit **
  18  Prefactor     9.5548        14.054        .51858E-05    .96460E-05
  19  norm          .10000E-03    58.190        .16698E-03** at limit **
  20  Prefactor     .32098        21.049        .10400        .44600E-03
  21  Prefactor     .10000E-03    21.524        .36285E-03** at limit **
  22  Prefactor     2.5842        33.981        .10168E-04    .45172E-04
  23  Prefactor     1.7924        3.0250        .83143E-05    .76572E-05
  24  norm          3.4730        9.2518        .43393E-04    .30391E-04
  25  norm          4.5771        4.2084        .69878E-05    .37745E-04
  26  Prefactor     .19799        45.482        .76569E-03    .70532E-04
  27  norm          .10000E-03    3.7332        .35257E-03** at limit **
  28  Normalizat    1.2923        .23638        .13824E-04    .31711E-03
  29  Prefactor     .96842        .11464        .39241E-04    .57016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13425
  norm       = 0.000100525
  Prefactor  = 0.0001
  Prefactor  = 4.96402
  norm       = 9.22311
  Prefactor  = 4.48699
  norm       = 2.60871
  Prefactor  = 0.0001
  Prefactor  = 74.0086
  Prefactor  = 0.0001
  Prefactor  = 17.8656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7374
  Prefactor  = 0.0001
  norm       = 0.876127
  Prefactor  = 0.0001
  Prefactor  = 9.55478
  norm       = 0.000100003
  Prefactor  = 0.320978
  Prefactor  = 0.0001
  Prefactor  = 2.5842
  Prefactor  = 1.79235
  norm       = 3.473
  norm       = 4.57708
  Prefactor  = 0.197992
  norm       = 0.0001
  Normalizat = 1.29235
  Prefactor  = 0.968417
 **********
 **   18 **HESSE 
 **********

 FCN=   8786.205     FROM HESSE     STATUS=OK           545 CALLS     7427 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1343        4.6708        .14194E-05   -1.5255    
   2  norm          .10052E-03    11.981        .10740       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6789        .69884E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9640        2.8754        .92638E-06   -1.5262    
   5  norm          9.2231        6.9806        .10557E-05   -1.5100    
   6  Prefactor     4.4870        2.5985        .87469E-06   -1.5284    
   7  norm          2.6087        1.1076        .48455E-06   -1.5385    
   8  Prefactor     .10000E-03    22.937        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     74.009        50.529        .18670E-05   -1.3985    
  10  Prefactor     .10000E-03    3.0713        .64052E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.866        51.223        .75810E-06   -1.4862    
  12  Prefactor     .10000E-03    5.0275        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.953        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.737        10.187        .89790E-06   -1.4994    
  15  Prefactor     .10000E-03    9.5941        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .87613        .50883        .37021E-06   -1.5521    
  17  Prefactor     .10000E-03    12.445        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5548        14.096        .10372E-05   -1.5090    
  19  norm          .10000E-03    58.193        .33395E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .32098        22.031        .10125       -1.5595    
  21  Prefactor     .10000E-03    21.524        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5842        33.860        .20335E-05   -1.5386    
  23  Prefactor     1.7924        3.0256        .16629E-05   -1.5440    
  24  norm          3.4730        9.2502        .17357E-05   -1.5335    
  25  norm          4.5771        4.2085        .13976E-05   -1.5280    
  26  Prefactor     .19799        45.468        .15314E-03   -1.5619    
  27  norm          .10000E-03    3.7332        .70515E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2923        .23676        .27648E-05   -.83795    
  29  Prefactor     .96842        .11461        .78481E-05   -.93790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95035e-09
Minuit parameter uncertainties:
  1  4.67111
  2  0.00501495
  3  1.13972e-06
  4  2.87553
  5  6.98118
  6  2.5986
  7  1.10765
  8  5.26241e-06
  9  50.5579
  10  7.31637e-07
  11  51.3493
  12  1.67799e-06
  13  1.89356e-06
  14  10.188
  15  6.0053e-06
  16  0.508834
  17  2.21902e-07
  18  14.1013
  19  0.000902521
  20  5.31967
  21  2.01223e-05
  22  18.7209
  23  3.02583
  24  9.25397
  25  4.20882
  26  6.00385
  27  1.44074e-06
  28  0.236957
  29  0.114639DDone.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.787e+01  5.135e+01  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.684e-01  1.146e-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:  1.292e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476000/likelihoodResults_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.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) = 8786.20469119
delta logL = 0.000329398497342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8786.20459558
delta logL = 0.000425008734965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.269       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1884       1.0000          .0000       10.000    
     3 'Normalizat'    1.2919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96860       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8786.205     FROM MIGRAD    STATUS=FAILED        86 CALLS      259 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.196        55.687        .96381E-04   -.58482E-03
   2  Index         2.1982        1.6153        .35562E-02   -.15052E-02
   3  Normalizat    1.2918        .21797        .34566E-03   -.46910E-02
   4  Prefactor     .96851        .10945        .19619E-03   -.86204E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8786.205     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      334 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.196        55.687        .48769E-03   -1.4878    
   2  Index         2.1982        1.6153        .15445E-02   -.59482    
   3  Normalizat    1.2918        .21797        .21817E-03   -.83810    
   4  Prefactor     .96851        .10945        .12121E-03   -.93787    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8786.205     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      360 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.183        54.970        .19276E-04   -.11961E-03
   2  Index         2.1991        1.5961        .14225E-03    .16048E-04
   3  Normalizat    1.2918        .21804        .69132E-04   -.39073E-04
   4  Prefactor     .96852        .10949        .39239E-04   -.45893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1834
  Index      = 2.19913
  Normalizat = 1.29184
  Prefactor  = 0.968521
 **********
 **   18 **HESSE 
 **********

 FCN=   8786.205     FROM HESSE     STATUS=OK            23 CALLS      383 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.183        54.878        .38552E-05   -1.4879    
   2  Index         2.1991        1.5950        .28450E-04   -.59460    
   3  Normalizat    1.2918        .21807        .13826E-04   -.83810    
   4  Prefactor     .96852        .10950        .78477E-05   -.93786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88615e-10
Minuit parameter uncertainties:
  1  55.0399
  2  1.63734
  3  0.218223
  4  0.10953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476000': 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) = 8786.2045726
delta logL = 0.000447994909337

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.718e+01  5.504e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.199e+00  1.637e+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.685e-01  1.095e-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:  1.292e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 36.631 9.635

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/476000/cmap_HighResolution_671414401_671673601_4FGL_J0226.5+0938_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2022-04-15 03:33:21.170319', job_id='476000', GAL2='0.97', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1650018801.17', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.48e-04', ts2='0.15', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1667' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:33:21 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 475998: <4FGL_J0226.5+0938_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:46 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:09:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:09:30 2022
Terminated at Fri Apr 15 03:32:00 2022
Results reported at Fri Apr 15 03:32:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1667 36.6313 9.6351 671414401 671673601 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 :                                   1288.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             311.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1350 sec.
    Turnaround time :                            12374 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 476000: <4FGL_J0226.5+0938_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:46 2022
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:09:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:09:30 2022
Terminated at Fri Apr 15 03:33:21 2022
Results reported at Fri Apr 15 03:33:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1667 36.6313 9.6351 671414401 671673601 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 :                                   1303.21 sec.
    Max Memory :                                 628 MB
    Average Memory :                             305.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1431 sec.
    Turnaround time :                            12455 sec.

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

