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 37 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1780
RA = 36.6313, Dec = 9.6351
tmin = 700704001, tmax = 700963201
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='49182', job_status='RUN', time_executed='2023-03-20 00:06:01.699489', time_epoch_executed='1679295961.7' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49182

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49182/ft1_4FGL_J0226.5+0938_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49182/ft1_4FGL_J0226.5+0938_daily_bin1780.fits outfile=/scratch/kocevski/49182/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1780.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.47
user 3.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.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/49182/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.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.61
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 673

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/49182/ltcube_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.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/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits
.....................!
real 12.18
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/49182/ltcube_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.fits outfile=/scratch/kocevski/49182/expmap_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.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/49182/ltcube_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.fits
.....................!
real 191.80
user 185.12
sys 5.95

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/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.fits scfile=/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits outfile=/scratch/kocevski/49182/cmap_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.fits scfile=/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits outfile=/scratch/kocevski/49182/cmap_HighResolution_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.fits', '/scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits', expMap='/scratch/kocevski/49182/expmap_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.fits', expCube='/scratch/kocevski/49182/ltcube_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49182/Model_4FGL_J0226.5+0938_daily_bin1780.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  0.000e+00  1.000e+06 ( 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/49182/ft1_filtered_4FGL_J0226.5+0938_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/49182/ft2_4FGL_J0226.5+0938_daily_bin1780.fits
Exposure map: /scratch/kocevski/49182/expmap_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.fits
Exposure cube: /scratch/kocevski/49182/ltcube_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49182/Model_4FGL_J0226.5+0938_daily_bin1780.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) = 7367.97475433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45882E-03   1.0000          .0000       .10000E+07
     2 'norm      '    6.2056       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11447E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.8183       1.0000          .0000       .10000E+07
     5 'norm      '    11.145       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.4791       1.0000          .0000       .10000E+07
     7 'norm      '    1.2569       1.0000          .0000       .10000E+07
     8 'Prefactor '    .88790E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18008E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20725E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.2420       1.0000          .0000       .10000E+07
    12 'Prefactor '    .56909E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17286E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .88780       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10641E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.166       1.0000          .0000       .10000E+07
    17 'norm      '    .45800E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.3407       1.0000          .0000       .10000E+07
    19 'Prefactor '    .61935       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.5065       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.5347       1.0000          .0000       .10000E+07
    22 'norm      '    14.726       1.0000          .0000       .10000E+07
    23 'norm      '    16.525       1.0000          .0000       .10000E+07
    24 'Prefactor '    .25197E-02   1.0000          .0000       .10000E+07
    25 'norm      '    .15155E-07   1.0000          .0000       .10000E+07
    26 'Normalizat'    .87078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0855       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=   7367.903     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1912 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8712        .55245E-07** at limit **
   2  norm          6.1851        2.9244       -.82504E-07   -.20667E-02
   3  Prefactor     .10547E-08    35.728        .11946E-05** at limit **
   4  Prefactor     5.8199        3.7057        .90087E-07    .57606E-03
   5  norm          11.130        6.7357        .14128E-06   -.29116E-03
   6  Prefactor     4.4808        2.8251       -.76659E-07   -.50640E-03
   7  norm          1.2564        .87687        .63041E-07   -.33629E-03
   8  Prefactor     .34972E-08    10.069       -.30059E-07** at limit **
   9  Prefactor     .11102E-09    6.3292       -.41363E-07** at limit **
  10  Prefactor      .0000        26.048        .14219E-05** at limit **
  11  Prefactor     7.2942        8.8604       -.21544E-06    .14712E-03
  12  Prefactor     .47184E-08    21.312       -.61324E-06** at limit **
  13  Prefactor     .55511E-10    4.4452       -.29062E-06** at limit **
  14  norm          .88866        .47785       -.64280E-07   -.12188E-02
  15  Prefactor     .87708E-08    126.99       -.33926E-05** at limit **
  16  Prefactor     16.232        3.2630       -.67306E-07    .95250E-02
  17  norm          .26767E-06    10.218       -.50774E-06** at limit **
  18  Prefactor     6.2645        9.5131        .34311E-06    .22702E-02
  19  Prefactor     .93203E-07    214.60        .15898E-05** at limit **
  20  Prefactor     2.5454        8.1143       -.48602E-06   -.20548E-01
  21  Prefactor     2.5602        5.5201        .19907E-06   -.44867E-03
  22  norm          14.708        10.208        .71563E-07    .66898E-02
  23  norm          16.521        5.5490        .37175E-07   -.60529E-03
  24  Prefactor     .46507E-06    7.3335        .16343E-07** at limit **
  25  norm          .11102E-09    5.4148        .88818E-07** at limit **
  26  Normalizat    .87090        .23354       -.69496E-05    .11415E-04
  27  Prefactor     1.0856        .11549        .53279E-05    .11392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 6.18513
  Prefactor  = 1.05471e-09
  Prefactor  = 5.8199
  norm       = 11.1299
  Prefactor  = 4.48084
  norm       = 1.25637
  Prefactor  = 3.4972e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 7.2942
  Prefactor  = 4.71845e-09
  Prefactor  = 5.55112e-11
  norm       = 0.888665
  Prefactor  = 8.77076e-09
  Prefactor  = 16.2315
  norm       = 2.67675e-07
  Prefactor  = 6.26453
  Prefactor  = 9.32032e-08
  Prefactor  = 2.54543
  Prefactor  = 2.56016
  norm       = 14.7076
  norm       = 16.5206
  Prefactor  = 4.65072e-07
  norm       = 1.11022e-10
  Normalizat = 0.870897
  Prefactor  = 1.08559
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.903     FROM HESSE     STATUS=OK           542 CALLS     2454 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1851        15.048        .40275E-03   -1.5658    
   3  Prefactor     .10547E-08    35.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8199        3.7161        .41612E-03   -1.5660    
   5  norm          11.130        6.7681        .29985E-03   -1.5641    
   6  Prefactor     4.4808        2.8309        .47551E-03   -1.5666    
   7  norm          1.2564        .88257        .99542E-03   -1.5686    
   8  Prefactor     .34972E-08    10.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    6.3418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        26.029        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2942        8.8806        .37249E-03   -1.5654    
  12  Prefactor     .47184E-08    21.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    4.4486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .88866        .48709        .46607E-03   -1.5689    
  15  Prefactor     .87708E-08    127.16        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.232        16.826        .24883E-03   -1.5627    
  17  norm          .26767E-06    14.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2645        14.853        .39838E-03   -1.5658    
  19  Prefactor     .93203E-07    213.42        .67513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5454        17.631        .64517E-03   -1.5676    
  21  Prefactor     2.5602        5.5657        .64125E-03   -1.5676    
  22  norm          14.708        10.228        .26074E-03   -1.5631    
  23  norm          16.521        5.5507        .24611E-03   -1.5627    
  24  Prefactor     .46507E-06    14.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .11102E-09    5.4123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87090        .21969        .87526E-01   -.97490    
  27  Prefactor     1.0856        .10618        .38167E-01   -.89928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01867e-07
Minuit parameter uncertainties:
  1  1.01765e-05
  2  15.0483
  3  0.000389815
  4  3.7161
  5  6.76807
  6  2.83092
  7  0.882569
  8  0.000375703
  9  5.39442e-05
  10  3.46257e-05
  11  8.88058
  12  0.000635286
  13  2.89474e-05
  14  0.487091
  15  0.00211173
  16  16.8265
  17  0.00387308
  18  14.8533
  19  0.00892068
  20  13.3982
  21  5.56567
  22  10.2276
  23  5.55066
  24  0.0051449
  25  4.51441e-05
  26  0.21992
  27  0.1062
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  0.000e+00  3.463e-05  0.000e+00  1.000e+06 ( 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.086e+00  1.062e-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:  8.709e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/49182/likelihoodResults_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.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) = 7367.9214694
delta logL = -0.0183274629353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7367.90314301
delta logL = -1.07115374703e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13547E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .57565       1.0000          .0000       10.000    
     3 'Normalizat'    .87074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0857       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7367.903     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      249 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.311        .84235E-04** at limit **
   2  Index         2.8494        3.7983       -.23058E-04     .0000    
   3  Normalizat    .87089        .12959        .69421E-08    .44590E-03
   4  Prefactor     1.0856        .66290E-01   -.22954E-08    .19891E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.84945
  Normalizat = 0.870892
  Prefactor  = 1.08559
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7367.903     FROM HESSE     STATUS=FAILED         9 CALLS      258 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.311        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .91954        3.7983       -.23058E-04   -.44462    
   3  Normalizat    .87089        .12959        .69421E-08   -.97491    
   4  Prefactor     1.0856        .66290E-01   -.22954E-08   -.89928    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.00798e-10
Minuit parameter uncertainties:
  1  2.567e-06
  2  4.51388
  3  0.129632
  4  0.0662953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49182': 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): 101
logL (Free Index) = 7367.90314194
delta logL = -1.1796146282e-09

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  0.000e+00  2.567e-06  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.849e+00  4.514e+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.086e+00  6.630e-02  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:  8.709e-01  1.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/49182/cmap_HighResolution_700704001_700963201_4FGL_J0226.5+0938_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.27e-08', time_completed='2023-03-20 00:17:12.114998', job_id='49182', GAL2='1.09', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1679296632.12', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.18e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1780' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:17:12 PDT 2023



------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 49227: <4FGL_J0226.5+0938_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:13 2023
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:14 2023
Terminated at Mon Mar 20 00:17:10 2023
Results reported at Mon Mar 20 00:17:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1780 36.6313 9.6351 700704001 700963201 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 :                                   660.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 49182: <4FGL_J0226.5+0938_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:09 2023
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:10 2023
Terminated at Mon Mar 20 00:17:12 2023
Results reported at Mon Mar 20 00:17:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1780 36.6313 9.6351 700704001 700963201 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 :                                   667.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            723 sec.

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

