/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 198 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 = 7498
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0226.3-1845_daily_bin160
RA = 36.5838, Dec = -18.763
tmin = 280800001, tmax = 281059201
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='387254', job_status='RUN', time_executed='2021-08-15 21:46:22.202410', time_epoch_executed='1629089182.2' WHERE source_name='4FGL J0226.3-1845' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387254/ft1_4FGL_J0226.3-1845_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387254/ft1_4FGL_J0226.3-1845_daily_bin160.fits outfile=/scratch/kocevski/387254/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin160.fits ra=36.5838 dec=-18.763 rad=12.0 tmin=280800001.0 tmax=281059201.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.82
user 3.60
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.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/387254/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin160.fits evtable="EVENTS" outfile="/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/387254/ltcube_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.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/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits
.....................!
real 13.71
user 13.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/387254/ltcube_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.fits outfile=/scratch/kocevski/387254/expmap_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.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/387254/ltcube_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.fits
.....................!
real 192.44
user 186.94
sys 5.15

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J0226.3-1845 @ 36.5838 -18.763

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits scfile=/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits outfile=/scratch/kocevski/387254/cmap_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.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.5838 yref=-18.763 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits scfile=/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits outfile=/scratch/kocevski/387254/cmap_HighResolution_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.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.5838 yref=-18.763 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387254/Model_4FGL_J0226.3-1845_daily_bin160.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/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits.....................!
real 56.25
user 54.89
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits', '/scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits', expMap='/scratch/kocevski/387254/expmap_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.fits', expCube='/scratch/kocevski/387254/ltcube_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/387254/Model_4FGL_J0226.3-1845_daily_bin160.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.3-1845'

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  6.797e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/387254/ft1_filtered_4FGL_J0226.3-1845_daily_bin160.fits
Spacecraft file(s): /scratch/kocevski/387254/ft2_4FGL_J0226.3-1845_daily_bin160.fits
Exposure map: /scratch/kocevski/387254/expmap_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.fits
Exposure cube: /scratch/kocevski/387254/ltcube_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/387254/Model_4FGL_J0226.3-1845_daily_bin160.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) = 6044.19551667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2440       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3056       1.0000         .10000E-03   10000.    
     9 'norm      '    36.815       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.835       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1515       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9844       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.313       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21811E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .25492       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6044.193     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2433 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.225        .23913E-06** at limit **
   2  norm          1.6271        1.7592       -.11418E-06   -.47886E-03
   3  Prefactor     .10000E-03    1.5651       -.13214E-06** at limit **
   4  Prefactor     .10000E-03    6.8279       -.18522E-06** at limit **
   5  Prefactor     2.2426        11.722        .75490E-05   -.11562E-03
   6  Prefactor     4.7196        4.4842        .13708E-07   -.80933E-04
   7  Prefactor     6.7395        7.6841       -.14112E-06   -.78360E-04
   8  Prefactor     5.3024        19.529       -.59437E-06   -.42345E-04
   9  norm          36.800        47.186        .15707E-05   -.31127E-04
  10  Prefactor     .10000E-03    1.9272       -.62976E-07** at limit **
  11  Prefactor     34.648        38.219       -.81332E-06   -.39317E-04
  12  Prefactor     .10000E-03    29.618       -.32308E-06** at limit **
  13  Prefactor     .10000E-03    24.214       -.25417E-06** at limit **
  14  Prefactor     59.835        36.025       -.33491E-06   -.56547E-04
  15  norm          1.1514        1.1895        .13316E-07   -.12299E-03
  16  Prefactor     4.9834        6.9266        .27145E-06   -.70298E-04
  17  Prefactor     63.330        65.572       -.17167E-05   -.45337E-04
  18  Prefactor     .10000E-03    75.940        .14030E-05** at limit **
  19  norm          3.3690        2.5598        .27262E-07   -.10163E-03
  20  Prefactor     .10000E-03    13.376        .17340E-05** at limit **
  21  Normalizat    .25494        .17576        .22949E-05    .75268E-04
  22  Prefactor     1.4764        .19149       -.14699E-05   -.83845E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.62714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24261
  Prefactor  = 4.71958
  Prefactor  = 6.73949
  Prefactor  = 5.30237
  norm       = 36.7997
  Prefactor  = 0.0001
  Prefactor  = 34.6478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.8347
  norm       = 1.1514
  Prefactor  = 4.98344
  Prefactor  = 63.3305
  Prefactor  = 0.000100002
  norm       = 3.36904
  Prefactor  = 0.000100003
  Normalizat = 0.254941
  Prefactor  = 1.47644
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.193     FROM HESSE     STATUS=OK           344 CALLS     2777 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6271        1.7316        .99044E-04   -1.5453    
   3  Prefactor     .10000E-03    1.5904        .94992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2426        11.800        .13717E-02   -1.5408    
   6  Prefactor     4.7196        4.4427        .14823E-03   -1.5273    
   7  Prefactor     6.7395        7.6601        .15457E-03   -1.5189    
   8  Prefactor     5.3024        19.409        .87245E-03   -1.5247    
   9  norm          36.800        46.959        .66052E-04   -1.4494    
  10  Prefactor     .10000E-03    1.9419        .10536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.648        38.145        .68086E-04   -1.4530    
  12  Prefactor     .10000E-03    29.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.835        35.571        .51868E-04   -1.4159    
  15  norm          1.1514        1.1866        .43108E-04   -1.5493    
  16  Prefactor     4.9834        6.8963        .18013E-03   -1.5261    
  17  Prefactor     63.330        65.782        .50432E-04   -1.4115    
  18  Prefactor     .10000E-03    77.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3690        2.5536        .10440E-03   -1.5341    
  20  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .25494        .16894        .36377E-03   -1.2563    
  22  Prefactor     1.4764        .19007        .18799E-03   -.78202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44296e-10
Minuit parameter uncertainties:
  1  6.94328e-05
  2  1.73166
  3  1.26356e-05
  4  3.31715e-05
  5  10.2911
  6  4.44301
  7  7.66119
  8  19.4322
  9  47.0057
  10  6.32296e-06
  11  38.1714
  12  1.81133e-05
  13  2.45094e-05
  14  35.5835
  15  1.18667
  16  6.8974
  17  65.8579
  18  0.00078743
  19  2.5537
  20  0.000417232
  21  0.169278
  22  0.190162
Done.

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

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  3.465e+01  3.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.476e+00  1.902e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  2.549e-01  1.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 36.584 -18.763
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 8.43e-06 +/- 9.29e-06

TS (Fixed Index): 1.13
Ra Dec: 36.584 -18.763
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387254/likelihoodResults_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.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) = 6044.0018724
delta logL = 0.191477011838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6043.98645078
delta logL = 0.206898629575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.475       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3398       1.0000          .0000       10.000    
     3 'Normalizat'    .23724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   6043.986     FROM MIGRAD    STATUS=FAILED       106 CALLS      325 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.540        595.05        .50907E-03    .33230E-04
   2  Index         3.3383        6.4182        .72948E-02    .49489E-03
   3  Normalizat    .23644        .16252        .37752E-03    .85525E-05
   4  Prefactor     1.4932        .20382        .18710E-03    .21145E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6043.986     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      408 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.540        595.05        .55408E-03    .33230E-04
   2  Index         3.3383        6.4182        .13406E-02    .49489E-03
   3  Normalizat    .23644        .16252        .38433E-03    .85525E-05
   4  Prefactor     1.4932        .20382        .20030E-03    .21145E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6043.986     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      438 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.540        45.371        .10181E-03   -.89328E-06
   2  Index         3.3383        1.8100        .14590E-02    .19428E-04
   3  Normalizat    .23644        .16124        .15101E-04    .84320E-05
   4  Prefactor     1.4932        .18970        .74842E-05    .20963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5395
  Index      = 3.33829
  Normalizat = 0.236438
  Prefactor  = 1.49322
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.986     FROM HESSE     STATUS=OK            25 CALLS      463 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.540        40.299        .40726E-05   -1.4919    
   2  Index         3.3383        1.6156        .29179E-03   -.33878    
   3  Normalizat    .23644        .16094        .30201E-05   -1.2685    
   4  Prefactor     1.4932        .18921        .14968E-05   -.77730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03656e-13
Minuit parameter uncertainties:
  1  40.3698
  2  1.64902
  3  0.161254
  4  0.189297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387254': 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) = 6043.9864353
delta logL = 0.206914108743

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.554e+01  4.037e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.338e+00  1.649e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.493e+00  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  2.364e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 36.584 -18.763
Photon Index (Free Index): 3.34 +/- 1.65
Photon Flux (Free Index): 4.14e-08 +/- 3.73e-08
Energy Flux (Free Index): 7.21e-06 +/- 7.41e-06

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/387254/cmap_HighResolution_280800001_281059201_4FGL_J0226.3-1845_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='7.21e-06', photon_flux_error='3.45e-08', dlogl='2.07e-01', energy_flux='8.43e-06', photon_flux2='4.14e-08', job_status='DONE', time_completed='2021-08-15 21:57:04.852012', photon_index_error2='1.65', photon_index2='3.34', ts='1.13', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', photon_flux_upper_limit='9.81e-08', energy_flux_error2='7.41e-06', EG='0.25', time_epoch_completed='1629089824.85', return_code='0', job_id='387254', GAL2='1.49', EG2='0.24', return_code2='0', energy_flux_error='9.29e-06', photon_flux_error2='3.73e-08', ts2='1.59', photon_index='2.57' WHERE bin_id='160' AND source_name='4FGL J0226.3-1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 387254: <4FGL_J0226.3-1845_daily_bin160> in cluster <slac> Done

Job <4FGL_J0226.3-1845_daily_bin160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 21:40:51 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:42:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 21:42:52 2021
Terminated at Sun Aug 15 21:57:05 2021
Results reported at Sun Aug 15 21:57:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.3-1845_daily_bin160 36.5838 -18.763 280800001 281059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.3-1845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            974 sec.

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

