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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1748
RA = 36.6313, Dec = 9.6351
tmin = 692409601, tmax = 692668801
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='875684', job_status='RUN', time_executed='2022-12-14 00:05:27.254050', time_epoch_executed='1671005127.25' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875684/ft1_4FGL_J0226.5+0938_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875684/ft2_4FGL_J0226.5+0938_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875684/ft1_4FGL_J0226.5+0938_daily_bin1748.fits outfile=/scratch/kocevski/875684/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1748.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=692409601.0 tmax=692668801.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.78
user 3.37
sys 0.23

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

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

Number of photons that the gtmktime cut: 645

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875684/ft1_filtered_4FGL_J0226.5+0938_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875684/ft2_4FGL_J0226.5+0938_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875684/ltcube_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.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/875684/ft2_4FGL_J0226.5+0938_daily_bin1748.fits
.....................!
real 12.67
user 12.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875684/ft1_filtered_4FGL_J0226.5+0938_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875684/ft2_4FGL_J0226.5+0938_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875684/ltcube_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.fits outfile=/scratch/kocevski/875684/expmap_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.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/875684/ltcube_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.fits
.....................!
real 192.11
user 186.81
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/875684/ft1_filtered_4FGL_J0226.5+0938_daily_bin1748.fits scfile=/scratch/kocevski/875684/ft2_4FGL_J0226.5+0938_daily_bin1748.fits outfile=/scratch/kocevski/875684/cmap_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875684/ft1_filtered_4FGL_J0226.5+0938_daily_bin1748.fits scfile=/scratch/kocevski/875684/ft2_4FGL_J0226.5+0938_daily_bin1748.fits outfile=/scratch/kocevski/875684/cmap_HighResolution_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0639       1.0000          .0000       .10000E+07
     2 'norm      '    .56354E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.7371       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.6538       1.0000          .0000       .10000E+07
     5 'norm      '    15.734       1.0000          .0000       .10000E+07
     6 'Prefactor '    .42131       1.0000          .0000       .10000E+07
     7 'norm      '    1.8264       1.0000          .0000       .10000E+07
     8 'Prefactor '    22.006       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56737E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    114.10       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10410E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18166E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10293E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.1514       1.0000          .0000       .10000E+07
    15 'Prefactor '    56.645       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.019       1.0000          .0000       .10000E+07
    17 'norm      '    .14066E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .36082E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    96.901       1.0000          .0000       .10000E+07
    20 'Prefactor '    .58597E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .74982E-02   1.0000          .0000       .10000E+07
    22 'norm      '    7.1146       1.0000          .0000       .10000E+07
    23 'norm      '    3.7881       1.0000          .0000       .10000E+07
    24 'Prefactor '    .25278E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .82904E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    .48176       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0198       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=   7274.268     FROM MIGRAD    STATUS=CONVERGED    224 CALLS     2509 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1267        5.2893        .19009E-07    .14370E-02
   2  norm          .14433E-08    11.308       -.48659E-07** at limit **
   3  Prefactor     7.8331        9.5986        .84786E-07    .58388E-02
   4  Prefactor     8.6649        3.9294        .27125E-07    .34810E-02
   5  norm          15.775        8.0883        .53079E-08    .41969E-02
   6  Prefactor     .39857        5.1346        .28632E-06    .39928E-03
   7  norm          1.8322        .99038       -.61109E-08   -.32518E-02
   8  Prefactor     21.722        17.766       -.14456E-06    .14179    
   9  Prefactor     .31586E-07    45.220        .37656E-06** at limit **
  10  Prefactor     119.73        71.718        .24239E-06   -.35541E-01
  11  Prefactor     .11102E-09    3.4174        .28323E-07** at limit **
  12  Prefactor     .20516E-05    109.55       -.74416E-06** at limit **
  13  Prefactor     .11102E-08    6.8917        .16805E-06** at limit **
  14  norm          1.1466        .52869        .13041E-07    .48459E-02
  15  Prefactor     57.244        38.206       -.43342E-07   -.82973E-01
  16  Prefactor     13.562        16.405        .60108E-07    .11783    
  17  norm          .44409E-09    4.9598        .12478E-06** at limit **
  18  Prefactor     .23315E-08    9.2126        .19933E-06** at limit **
  19  Prefactor     100.82        31.733        .14430E-06    .27572E-01
  20  Prefactor     .47462E-07    15.631        .13926E-06** at limit **
  21  Prefactor     .61456E-06    21.237       -.42845E-06** at limit **
  22  norm          7.1276        7.0595       -.50511E-07   -.17048E-02
  23  norm          3.7927        2.8522       -.19891E-07   -.20792E-02
  24  Prefactor      .0000        2.2771        .17634E-07** at limit **
  25  norm           .0000        2.0411        .51084E-07** at limit **
  26  Normalizat    .47994        .22478       -.17026E-06   -.68947E-04
  27  Prefactor     1.0188        .10603       -.15818E-05   -.31776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.12672
  norm       = 1.44329e-09
  Prefactor  = 7.83308
  Prefactor  = 8.66488
  norm       = 15.7745
  Prefactor  = 0.39857
  norm       = 1.83222
  Prefactor  = 21.7222
  Prefactor  = 3.15858e-08
  Prefactor  = 119.729
  Prefactor  = 1.11022e-10
  Prefactor  = 2.05164e-06
  Prefactor  = 1.11022e-09
  norm       = 1.14665
  Prefactor  = 57.2439
  Prefactor  = 13.5621
  norm       = 4.44089e-10
  Prefactor  = 2.33147e-09
  Prefactor  = 100.823
  Prefactor  = 4.7462e-08
  Prefactor  = 6.14564e-07
  norm       = 7.12761
  norm       = 3.79269
  Prefactor  = 0
  norm       = 0
  Normalizat = 0.479944
  Prefactor  = 1.01883
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.268     FROM HESSE     STATUS=OK           552 CALLS     3061 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1267        5.2934        .37720E-03   -1.5655    
   2  norm          .14433E-08    11.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8331        9.6722        .36027E-03   -1.5652    
   4  Prefactor     8.6649        3.9567        .34051E-03   -1.5649    
   5  norm          15.775        8.2428        .25223E-03   -1.5629    
   6  Prefactor     .39857        1.8246        .53733E-02   -1.5695    
   7  norm          1.8322        .99726        .77212E-03   -1.5681    
   8  Prefactor     21.722        24.669        .21323E-03   -1.5615    
   9  Prefactor     .31586E-07    45.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     119.73        76.425        .93625E-04   -1.5489    
  11  Prefactor     .11102E-09    3.4077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .20516E-05    120.63        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-08    6.8786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1466        .53362        .91302E-03   -1.5687    
  15  Prefactor     57.244        57.471        .13288E-03   -1.5557    
  16  Prefactor     13.562        19.407        .26725E-03   -1.5634    
  17  norm          .44409E-09    4.9584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .23315E-08    9.2144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     100.82        57.469        .10159E-03   -1.5507    
  20  Prefactor     .47462E-07    15.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .61456E-06    20.970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.1276        7.0605        .37584E-03   -1.5655    
  23  norm          3.7927        2.8549        .51841E-03   -1.5669    
  24  Prefactor      .0000        2.2762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        2.0417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .47994        .22820        .10257       -1.1335    
  27  Prefactor     1.0188        .10158        .42165E-01   -.92104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54021e-06
Minuit parameter uncertainties:
  1  5.29341
  2  0.000255351
  3  9.67225
  4  3.95672
  5  8.24277
  6  1.70556
  7  0.997264
  8  24.6693
  9  0.00239506
  10  76.4256
  11  3.3994e-05
  12  0.0314641
  13  0.00017634
  14  0.533623
  15  57.4716
  16  19.4075
  17  9.44314e-05
  18  0.000292027
  19  57.4697
  20  0.00172439
  21  0.0071798
  22  7.06052
  23  2.85494
  24  1.23975e-05
  25  1.46002e-05
  26  0.228647
  27  0.1016
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.197e+02  7.643e+01  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.019e+00  1.016e-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:  4.799e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.39
Ra Dec: 36.631 9.635
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.88e-05

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) = 7274.26738597
delta logL = 0.000586425929214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7274.26697282
delta logL = 0.000999571157081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    117.13       1.0000          .0000       .10000E+07
     2 'Index     '    2.1753       1.0000          .0000       10.000    
     3 'Normalizat'    .47853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0189       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7274.267     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      266 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     116.95        100.76        .18481E-04    .36294E-03
   2  Index         2.1733        .52132        .62746E-02    .47455E-03
   3  Normalizat    .47876        .20183        .45523E-03    .54617E-04
   4  Prefactor     1.0191        .10436        .16529E-03   -.81640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 116.945
  Index      = 2.17331
  Normalizat = 0.478756
  Prefactor  = 1.0191
 **********
 **   18 **HESSE 
 **********

 FCN=   7274.267     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     116.95        96.751        .73923E-06   -1.5492    
   2  Index         2.1733        .50035        .12549E-02   -.60084    
   3  Normalizat    .47876        .20163        .18209E-04   -1.1341    
   4  Prefactor     1.0191        .10434        .66118E-05   -.92096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1708e-11
Minuit parameter uncertainties:
  1  96.752
  2  0.501582
  3  0.201934
  4  0.10436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875684': 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) = 7274.26693867
delta logL = 0.00103372507692

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.169e+02  9.675e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.173e+00  5.016e-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:  1.019e+00  1.044e-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:  4.788e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 36.631 9.635
Photon Index (Free Index): 2.17 +/- 0.50
Photon Flux (Free Index): 6.12e-08 +/- 4.93e-08
Energy Flux (Free Index): 2.89e-05 +/- 2.24e-05

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/875684/cmap_HighResolution_692409601_692668801_4FGL_J0226.5+0938_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='2.89e-05', photon_flux_error='3.81e-08', dlogl='1.03e-03', energy_flux='2.95e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2022-12-14 00:17:01.890610', photon_index_error2='0.50', photon_index2='2.17', ts='5.39', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.48', time_epoch_completed='1671005821.89', return_code='0', job_id='875684', GAL2='1.02', EG2='0.48', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='4.93e-08', ts2='5.40', photon_index='2.15' WHERE bin_id='1748' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:17:01 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 875684: <4FGL_J0226.5+0938_daily_bin1748> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:05:00 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:01 2022
Terminated at Wed Dec 14 00:17:02 2022
Results reported at Wed Dec 14 00:17:02 2022

Your job looked like:

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

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

