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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1726
RA = 36.6313, Dec = 9.6351
tmin = 686707201, tmax = 686966401
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='77741', job_status='RUN', time_executed='2022-10-09 00:06:05.772844', time_epoch_executed='1665299165.77' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77741/ft1_4FGL_J0226.5+0938_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77741/ft2_4FGL_J0226.5+0938_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77741/ft1_4FGL_J0226.5+0938_daily_bin1726.fits outfile=/scratch/kocevski/77741/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1726.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=686707201.0 tmax=686966401.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.11
user 2.89
sys 0.17

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

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

Number of photons that the gtmktime cut: 54

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77741/ft1_filtered_4FGL_J0226.5+0938_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/77741/ft2_4FGL_J0226.5+0938_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/77741/ltcube_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.fits outfile=/scratch/kocevski/77741/expmap_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.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/77741/ltcube_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.fits
.....................!
real 192.76
user 185.30
sys 5.54

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/77741/ft1_filtered_4FGL_J0226.5+0938_daily_bin1726.fits scfile=/scratch/kocevski/77741/ft2_4FGL_J0226.5+0938_daily_bin1726.fits outfile=/scratch/kocevski/77741/cmap_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.6313 yref=9.6351 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.02
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77741/ft1_filtered_4FGL_J0226.5+0938_daily_bin1726.fits scfile=/scratch/kocevski/77741/ft2_4FGL_J0226.5+0938_daily_bin1726.fits outfile=/scratch/kocevski/77741/cmap_HighResolution_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.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.63
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72387E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .81701E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15354E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
     5 'norm      '    .11935E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .78498E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .85487E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .42410E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    377.03       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12968E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    99.629       1.0000          .0000       .10000E+07
    12 'Prefactor '    .93198E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10669E-06   1.0000          .0000       .10000E+07
    14 'norm      '    1.9479       1.0000          .0000       .10000E+07
    15 'Prefactor '    .91297E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    226.00       1.0000          .0000       .10000E+07
    17 'norm      '    56.727       1.0000          .0000       .10000E+07
    18 'Prefactor '    .19484E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .89735       1.0000          .0000       .10000E+07
    20 'Prefactor '    .54567E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10856E-03   1.0000          .0000       .10000E+07
    22 'norm      '    47.044       1.0000          .0000       .10000E+07
    23 'norm      '    50.850       1.0000          .0000       .10000E+07
    24 'Prefactor '    26.625       1.0000          .0000       .10000E+07
    25 'norm      '    8.5707       1.0000          .0000       .10000E+07
    26 'Normalizat'    .39709       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .38817       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.

 FCN=   644.7858     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3433 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    60.682       -.29852E-07** at limit **
   2  norm          .81046E-08    450.21        .39154E-06** at limit **
   3  Prefactor     .12212E-08    101.85       -.15263E-06** at limit **
   4  Prefactor      .0000        44.750        .20706E-07** at limit **
   5  norm          .55511E-10    29.063        .29141E-07** at limit **
   6  Prefactor      .0000        13.721        .55304E-08** at limit **
   7  norm           .0000        2.2888       -.66293E-09** at limit **
   8  Prefactor     .12546E-07    360.14       -.43487E-06** at limit **
   9  Prefactor     376.76        421.26       -.49896E-07    .13283E-03
  10  Prefactor     .61062E-09    215.88       -.10053E-06** at limit **
  11  Prefactor     99.611        85.506       -.20113E-06   -.13321E-03
  12  Prefactor     .33307E-09    73.453        .10523E-06** at limit **
  13  Prefactor     .11102E-09    30.307       -.23572E-07** at limit **
  14  norm          1.9476        2.0612       -.49947E-08   -.43721E-03
  15  Prefactor     .55511E-10    200.16        .14525E-06** at limit **
  16  Prefactor     225.62        169.55        .90715E-07    .22983E-03
  17  norm          56.929        74.727       -.19291E-05   -.19168E-03
  18  Prefactor      .0000        33.565        .25887E-07** at limit **
  19  Prefactor     .12808E-04    17475.       -.65023E-05** at limit **
  20  Prefactor     .55511E-10    45.232       -.20188E-07** at limit **
  21  Prefactor     .11102E-09    158.72        .57657E-07** at limit **
  22  norm          47.093        66.520        .12959E-06    .16213E-03
  23  norm          50.839        24.721        .44383E-08    .49353E-03
  24  Prefactor     26.627        23.251       -.28847E-07   -.81707E-03
  25  norm          8.5571        18.832       -.35116E-07   -.21036E-03
  26  Normalizat    .39839        .59422        .79893E-05    .60960E-05
  27  Prefactor     .38819        .24718       -.16975E-05    .23128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 8.10463e-09
  Prefactor  = 1.22125e-09
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.25455e-08
  Prefactor  = 376.756
  Prefactor  = 6.10623e-10
  Prefactor  = 99.6109
  Prefactor  = 3.33067e-10
  Prefactor  = 1.11022e-10
  norm       = 1.94763
  Prefactor  = 5.55112e-11
  Prefactor  = 225.619
  norm       = 56.9285
  Prefactor  = 0
  Prefactor  = 1.28075e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 47.0931
  norm       = 50.8392
  Prefactor  = 26.627
  norm       = 8.5571
  Normalizat = 0.39839
  Prefactor  = 0.38819
 **********
 **   18 **HESSE 
 **********

 FCN=   644.7858     FROM HESSE     STATUS=OK           480 CALLS     3913 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    60.684        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .81046E-08    450.39        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12212E-08    101.87        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        44.753        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    29.064        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        13.723        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        2.2888        .37530E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12546E-07    360.59        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     376.76        420.56        .10302E-04   -1.5320    
  10  Prefactor     .61062E-09    215.90        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     99.611        85.661        .40077E-05   -1.5508    
  12  Prefactor     .33307E-09    73.473        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    30.316        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9476        2.0669        .35994E-05   -1.5680    
  15  Prefactor     .55511E-10    200.48        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     225.62        168.78        .13305E-04   -1.5408    
  17  norm          56.929        101.12        .53112E-05   -1.5557    
  18  Prefactor      .0000        33.569        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12808E-04    1508.0        .12862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    45.237        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11102E-09    159.06        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          47.093        66.512        .58324E-05   -1.5571    
  23  norm          50.839        24.767        .28049E-04   -1.5565    
  24  Prefactor     26.627        23.228        .77536E-05   -1.5605    
  25  norm          8.5571        19.302        .13687E-04   -1.5649    
  26  Normalizat    .39839        .60788        .48990E-03   -1.1738    
  27  Prefactor     .38819        .26462        .19596E-03   -1.1742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22851e-10
Minuit parameter uncertainties:
  1  0.000107403
  2  0.00382157
  3  0.000711572
  4  4.03887e-05
  5  6.66287e-05
  6  4.81026e-06
  7  8.40872e-07
  8  0.00425558
  9  420.597
  10  0.000730857
  11  85.6617
  12  0.00030578
  13  0.000118124
  14  2.06695
  15  0.000215175
  16  168.783
  17  101.123
  18  4.2129e-05
  19  0.278018
  20  7.90379e-05
  21  0.000275838
  22  66.5132
  23  24.7673
  24  23.2281
  25  19.3022
  26  0.618396
  27  0.265459
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  6.106e-10  7.309e-04  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:  3.882e-01  2.655e-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:  3.984e-01  6.184e-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: 5.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77741/likelihoodResults_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 644.787997258
delta logL = -0.00220627496299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 644.785791168
delta logL = -1.84615373655e-07

Fit tolerance = 1e-08

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

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

 FCN=   644.7858     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .61E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        213.92        .42118E-03** at limit **
   2  Index         .86966        .70621       -.99673E-04     .0000    
   3  Normalizat    .39839        .71821       -.14720E-04    .13090E-07
   4  Prefactor     .38819        .71794        .36968E-05    .69015E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.869662
  Normalizat = 0.398391
  Prefactor  = 0.388189
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   644.7858     FROM HESSE     STATUS=FAILED         9 CALLS      245 TOTAL
                     EDM=   .61E-14  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        213.92        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .19657E-01    .98182       -.99673E-04   -.97209    
   3  Normalizat    .39839        .71821       -.14720E-04   -1.1738    
   4  Prefactor     .38819        .71794        .36968E-05   -1.1742    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.07181e-15
Minuit parameter uncertainties:
  1  2.69969e-05
  2  0.713819
  3  0.735895
  4  0.735593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77741': 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) = 644.785790983
delta logL = 3.06954461848e-12

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  0.000e+00  2.700e-05  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  8.697e-01  7.138e-01  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:  3.882e-01  7.356e-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:  3.984e-01  7.359e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/77741/cmap_HighResolution_686707201_686966401_4FGL_J0226.5+0938_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-02', job_status='DONE', photon_flux_upper_limit='5.86e-07', time_completed='2022-10-09 00:12:20.529072', job_id='77741', GAL2='0.39', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1665299540.53', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='3.07e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1726' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:12:20 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 77806: <4FGL_J0226.5+0938_daily_bin1726> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1726> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct  9 00:05:41 2022
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:05:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:05:50 2022
Terminated at Sun Oct  9 00:12:19 2022
Results reported at Sun Oct  9 00:12:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1726 36.6313 9.6351 686707201 686966401 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 :                                   364.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   389 sec.
    Turnaround time :                            398 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 77741: <4FGL_J0226.5+0938_daily_bin1726> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Oct  9 00:05:38 2022
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:05:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:05:44 2022
Terminated at Sun Oct  9 00:12:21 2022
Results reported at Sun Oct  9 00:12:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1726 36.6313 9.6351 686707201 686966401 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 :                                   367.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   396 sec.
    Turnaround time :                            403 sec.

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

