/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 138 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 = 7550
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0226.3-1845_daily_bin932
RA = 36.5838, Dec = -18.763
tmin = 480902401, tmax = 481161601
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='390367', job_status='RUN', time_executed='2021-08-15 21:57:38.902149', time_epoch_executed='1629089858.9' WHERE source_name='4FGL J0226.3-1845' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390367/ft1_4FGL_J0226.3-1845_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390367/ft1_4FGL_J0226.3-1845_daily_bin932.fits outfile=/scratch/kocevski/390367/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin932.fits ra=36.5838 dec=-18.763 rad=12.0 tmin=480902401.0 tmax=481161601.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 5.91
user 3.43
sys 2.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.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/390367/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin932.fits evtable="EVENTS" outfile="/scratch/kocevski/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.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 2.71
user 0.33
sys 2.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/390367/ltcube_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.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/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits
.....................!
real 16.41
user 13.52
sys 2.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/390367/ltcube_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.fits outfile=/scratch/kocevski/390367/expmap_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.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/390367/ltcube_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.fits
.....................!
real 194.36
user 186.42
sys 7.22

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/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits scfile=/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits outfile=/scratch/kocevski/390367/cmap_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.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 2.67
user 0.39
sys 2.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits scfile=/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits outfile=/scratch/kocevski/390367/cmap_HighResolution_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.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 2.67
user 0.40
sys 2.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/390367/Model_4FGL_J0226.3-1845_daily_bin932.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/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits.....................!
real 45.69
user 41.15
sys 4.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits', '/scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits', expMap='/scratch/kocevski/390367/expmap_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.fits', expCube='/scratch/kocevski/390367/ltcube_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/390367/Model_4FGL_J0226.3-1845_daily_bin932.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/390367/ft1_filtered_4FGL_J0226.3-1845_daily_bin932.fits
Spacecraft file(s): /scratch/kocevski/390367/ft2_4FGL_J0226.3-1845_daily_bin932.fits
Exposure map: /scratch/kocevski/390367/expmap_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.fits
Exposure cube: /scratch/kocevski/390367/ltcube_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/390367/Model_4FGL_J0226.3-1845_daily_bin932.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) = 3938.55226801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.836       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0192       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10311E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11898E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14427E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.776       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2559       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91031       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=   3938.550     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2374 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.844        69.034        .50173E-06    .23914E-04
   2  norm          1.0171        2.8199        .41404E-07   -.94897E-04
   3  Prefactor     11.824        6.0907        .19553E-06   -.16902E-03
   4  Prefactor     9.7143        16.435       -.20803E-05    .20740E-03
   5  Prefactor     1.8570        16.671        .26048E-06   -.25425E-04
   6  Prefactor     2.2624        7.3161        .66865E-05    .85342E-04
   7  Prefactor     .10000E-03    3.8345       -.71431E-07** at limit **
   8  Prefactor     .10000E-03    9.9185       -.23427E-07** at limit **
   9  norm          .10000E-03    29.826       -.66660E-07** at limit **
  10  Prefactor     .10000E-03    2.9251        .11369E-06** at limit **
  11  Prefactor     36.998        55.639       -.48743E-06    .46997E-05
  12  Prefactor     .10000E-03    34.492        .17112E-06** at limit **
  13  Prefactor     .10000E-03    16.841       -.22687E-06** at limit **
  14  Prefactor     .10000E-03    19.297        .68871E-06** at limit **
  15  norm          .10000E-03    1.5383       -.15290E-06** at limit **
  16  Prefactor     .10000E-03    7.3273       -.19818E-06** at limit **
  17  Prefactor     .10005E-03    1017.3       -.31766E-05** at limit **
  18  Prefactor     .10000E-03    21.667       -.63993E-06** at limit **
  19  norm          13.778        6.7028        .12843E-06    .19776E-03
  20  Prefactor     .10000E-03    8.8878       -.10764E-06** at limit **
  21  Normalizat    1.2560        .23462       -.15652E-05    .88806E-04
  22  Prefactor     .91034        .23246        .95543E-06    .27812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8444
  norm       = 1.01711
  Prefactor  = 11.8239
  Prefactor  = 9.71434
  Prefactor  = 1.85698
  Prefactor  = 2.26239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  norm       = 13.7783
  Prefactor  = 0.0001
  Normalizat = 1.25604
  Prefactor  = 0.910344
 **********
 **   18 **HESSE 
 **********

 FCN=   3938.550     FROM HESSE     STATUS=OK           338 CALLS     2712 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.844        69.042        .64317E-04   -1.4461    
   2  norm          1.0171        2.7973        .16354E-03   -1.5506    
   3  Prefactor     11.824        6.1031        .10631E-03   -1.5020    
   4  Prefactor     9.7143        16.526        .12849E-03   -1.5085    
   5  Prefactor     1.8570        16.665        .30562E-03   -1.5435    
   6  Prefactor     2.2624        7.3288        .13661E-02   -1.5407    
   7  Prefactor     .10000E-03    3.8418        .12001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    29.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9302        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.998        55.669        .65890E-04   -1.4491    
  12  Prefactor     .10000E-03    34.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3649        .14979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3926        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    1040.9        .18190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.778        6.6712        .10792E-03   -1.4965    
  20  Prefactor     .10000E-03    8.8958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2560        .27606        .23535E-03   -.84888    
  22  Prefactor     .91034        .27422        .27764E-03   -.95781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77807e-10
Minuit parameter uncertainties:
  1  69.1846
  2  2.79769
  3  6.10337
  4  16.5333
  5  11.1297
  6  7.33175
  7  7.36844e-06
  8  1.19495e-05
  9  6.13433e-05
  10  8.8606e-06
  11  55.7469
  12  8.04742e-05
  13  4.80564e-05
  14  0.000210479
  15  7.74006e-06
  16  3.1736e-05
  17  0.0153526
  18  0.000180318
  19  6.67158
  20  1.52056e-05
  21  0.276384
  22  0.274639
Done.

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

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  3.700e+01  5.575e+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:  9.103e-01  2.746e-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:  1.256e+00  2.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 36.584 -18.763
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390367/likelihoodResults_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.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) = 3937.83496584
delta logL = 0.715052406384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3937.76054806
delta logL = 0.789470186107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.569       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7195       1.0000          .0000       10.000    
     3 'Normalizat'    1.2863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87893       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.

 FCN=   3937.761     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.569        62.372        .12889E-02    .16760E-02
   2  Index         1.7194        .46321        .18900       -.34857E-04
   3  Normalizat    1.2863        .22426        .52665E-01    .22976E-05
   4  Prefactor     .87892        .23078        .44736E-01    .10019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.5689
  Index      = 1.71943
  Normalizat = 1.28626
  Prefactor  = 0.878918
 **********
 **   18 **HESSE 
 **********

 FCN=   3937.761     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.569        67.853        .51555E-04   -1.4150    
   2  Index         1.7194        .56773        .74123E-02   -.71566    
   3  Normalizat    1.2863        .26480        .23285E-03   -.83978    
   4  Prefactor     .87892        .27250        .28149E-03   -.96882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93553e-08
Minuit parameter uncertainties:
  1  67.9403
  2  0.569898
  3  0.265084
  4  0.272919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390367': 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) = 3937.76054787
delta logL = 0.789470376902

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  6.057e+01  6.794e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.719e+00  5.699e-01  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:  8.789e-01  2.729e-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:  1.286e+00  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 36.584 -18.763
Photon Index (Free Index): 1.72 +/- 0.57
Photon Flux (Free Index): 2.30e-08 +/- 2.98e-08
Energy Flux (Free Index): 3.52e-05 +/- 5.01e-05

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/390367/cmap_HighResolution_480902401_481161601_4FGL_J0226.3-1845_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='3.52e-05', dlogl='7.89e-01', photon_flux2='2.30e-08', job_status='DONE', time_completed='2021-08-15 22:06:52.903467', photon_index_error2='0.57', photon_index2='1.72', ts='0.59', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='5.01e-05', EG='1.26', time_epoch_completed='1629090412.9', return_code='0', job_id='390367', GAL2='0.88', EG2='1.29', return_code2='0', photon_flux_error2='2.98e-08', ts2='2.19', photon_index='2.57' WHERE bin_id='932' AND source_name='4FGL J0226.3-1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 390367: <4FGL_J0226.3-1845_daily_bin932> in cluster <slac> Done

Job <4FGL_J0226.3-1845_daily_bin932> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 21:50:52 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:54:31 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:54:31 2021
Terminated at Sun Aug 15 22:06:55 2021
Results reported at Sun Aug 15 22:06:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.3-1845_daily_bin932 36.5838 -18.763 480902401 481161601 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 :                                   585.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            963 sec.

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

