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


Performing analysis on: 4FGL_J0226.3-1845_daily_bin411
RA = 36.5838, Dec = -18.763
tmin = 345859201, tmax = 346118401
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='388634', job_status='RUN', time_executed='2021-08-15 21:49:28.928359', time_epoch_executed='1629089368.93' WHERE source_name='4FGL J0226.3-1845' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388634

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388634/ft1_4FGL_J0226.3-1845_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388634/ft1_4FGL_J0226.3-1845_daily_bin411.fits outfile=/scratch/kocevski/388634/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin411.fits ra=36.5838 dec=-18.763 rad=12.0 tmin=345859201.0 tmax=346118401.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 11.54
user 3.18
sys 8.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.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/388634/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.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 8.98
user 0.35
sys 8.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/388634/ltcube_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.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/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits
.....................!
real 23.17
user 14.19
sys 8.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/388634/ltcube_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.fits outfile=/scratch/kocevski/388634/expmap_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.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/388634/ltcube_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.fits
.....................!
real 202.22
user 186.11
sys 15.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 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/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.fits scfile=/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits outfile=/scratch/kocevski/388634/cmap_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.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 8.65
user 0.39
sys 8.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.fits scfile=/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits outfile=/scratch/kocevski/388634/cmap_HighResolution_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.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 8.51
user 0.38
sys 8.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/388634/ft2_4FGL_J0226.3-1845_daily_bin411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388634/Model_4FGL_J0226.3-1845_daily_bin411.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/388634/ft1_filtered_4FGL_J0226.3-1845_daily_bin411.fits.....................!
real 66.76
user 53.06
sys 11.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7572       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.245       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7389       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.362       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9768       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    115.79       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.504       1.0000         .10000E-03   10000.    
    19 'norm      '    9.4183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72753       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85771       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6009.187     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2060 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.977        .16330E-04** at limit **
   2  norm          .10000E-03    .53193       -.44900E-05** at limit **
   3  Prefactor     6.2841        3.8204       -.40083E-05   -.46796E-03
   4  Prefactor     .10000E-03    2.9847        .33156E-06** at limit **
   5  Prefactor     7.7577        1.2873        .61144E-06    .44954E-02
   6  Prefactor     1.9002        2.4881       -.93085E-06   -.70817E-04
   7  Prefactor     .10000E-03    28.585        .57659E-04** at limit **
   8  Prefactor     .10000E-03    10.809       -.32134E-05** at limit **
   9  norm          .10020E-03    1580.6       -.93368E-04** at limit **
  10  Prefactor     .10000E-03    1.8396        .22301E-05** at limit **
  11  Prefactor     33.244        31.393        .16459E-04   -.32453E-02
  12  Prefactor     .10000E-03    13.344       -.94589E-05** at limit **
  13  Prefactor     3.7330        6.2918        .91082E-05    .11555E-02
  14  Prefactor     35.372        5.1581       -.23066E-05    .41301E-02
  15  norm          4.9768        1.7121        .13627E-05    .32567E-03
  16  Prefactor     .10000E-03    7.2771       -.12038E-05** at limit **
  17  Prefactor     115.79        1.5954       -.33582E-06    .71121E-03
  18  Prefactor     11.509        5.1490        .45226E-05    .10908E-01
  19  norm          9.4182        3.1358       -.32963E-05   -.53161E-03
  20  Prefactor     .10000E-03    5.7593       -.26334E-05** at limit **
  21  Normalizat    .72744        .15055        .53178E-05   -.58824E-04
  22  Prefactor     .85788        .16240        .21592E-05   -.83386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.2841
  Prefactor  = 0.0001
  Prefactor  = 7.75772
  Prefactor  = 1.90015
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100199
  Prefactor  = 0.0001
  Prefactor  = 33.2443
  Prefactor  = 0.0001
  Prefactor  = 3.73298
  Prefactor  = 35.3724
  norm       = 4.97684
  Prefactor  = 0.0001
  Prefactor  = 115.791
  Prefactor  = 11.5089
  norm       = 9.41822
  Prefactor  = 0.0001
  Normalizat = 0.727437
  Prefactor  = 0.857876
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.187     FROM HESSE     STATUS=OK           402 CALLS     2462 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .52070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2841        3.8765        .40032E-02   -1.5207    
   4  Prefactor     .10000E-03    2.9711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7577        9.0127        .35994E-02   -1.5151    
   6  Prefactor     1.9002        2.5073        .75440E-02   -1.5432    
   7  Prefactor     .10000E-03    6.0786        .55536E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10020E-03    33.432        .12869       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.244        35.118        .17374E-02   -1.4554    
  12  Prefactor     .10000E-03    13.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7330        39.358        .52204E-02   -1.5322    
  14  Prefactor     35.372        33.016        .16848E-02   -1.4518    
  15  norm          4.9768        1.7159        .45067E-02   -1.5262    
  16  Prefactor     .10000E-03    7.0560        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     115.79        61.849        .93476E-03   -1.3552    
  18  Prefactor     11.509        16.318        .29528E-02   -1.5029    
  19  norm          9.4182        3.1518        .32646E-02   -1.5094    
  20  Prefactor     .10000E-03    5.7528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .72744        .13344        .42657E-01   -1.0282    
  22  Prefactor     .85788        .14178        .44464E-01   -.97629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.407e-07
Minuit parameter uncertainties:
  1  0.000139128
  2  5.67142e-06
  3  3.87668
  4  2.01033e-06
  5  9.01428
  6  2.50749
  7  0.000116321
  8  0.000131826
  9  0.00516136
  10  1.17016e-05
  11  35.1399
  12  0.000130836
  13  24.2623
  14  33.0331
  15  1.71591
  16  6.37572e-06
  17  61.8834
  18  16.3245
  19  3.15187
  20  1.60845e-05
  21  0.133501
  22  0.14184
Done.

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

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  3.324e+01  3.514e+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:  8.579e-01  1.418e-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:  7.274e-01  1.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 36.584 -18.763
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 3.00e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 8.09e-06 +/- 8.55e-06

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

Saving results to:
/scratch/kocevski/388634/likelihoodResults_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.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) = 6008.81216394
delta logL = 0.375154867868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6008.78555358
delta logL = 0.401765226697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4201       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2006       1.0000          .0000       10.000    
     3 'Normalizat'    .69696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88627       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=   6008.786     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3991        68.802        .47887E-02    .19891E-03
   2  Index         4.2036        3.4308        .16545        .85125E-04
   3  Normalizat    .69697        .39781E-01    .42250E-01   -.11375E-03
   4  Prefactor     .88626        .43551E-01    .44830E-01   -.58039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39909
  Index      = 4.20362
  Normalizat = 0.696973
  Prefactor  = 0.886257
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.786     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3991        138.65        .12346E-03   -1.5288    
   2  Index         4.2036        7.1018        .57061E-02   -.15996    
   3  Normalizat    .69697        .13939        .22100E-03   -1.0401    
   4  Prefactor     .88626        .15487        .21927E-03   -.96623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97905e-07
Minuit parameter uncertainties:
  1  49.5185
  2  6.94771
  3  0.139461
  4  0.154942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388634': 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): 102
logL (Free Index) = 6008.78555234
delta logL = 0.401766469397

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  4.399e+00  4.952e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  4.204e+00  6.948e+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:  8.863e-01  1.549e-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:  6.970e-01  1.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 36.584 -18.763
Photon Index (Free Index): 4.20 +/- 6.95
Photon Flux (Free Index): 4.54e-08 +/- 3.59e-08
Energy Flux (Free Index): 6.58e-06 +/- 8.37e-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/388634/cmap_HighResolution_345859201_346118401_4FGL_J0226.3-1845_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', comment='SUCCESS', photon_flux='3.00e-08', energy_flux2='6.58e-06', photon_flux_error='3.17e-08', dlogl='4.02e-01', energy_flux='8.09e-06', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-08-15 22:01:53.978506', photon_index_error2='6.95', photon_index2='4.20', ts='1.21', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.33e-08', energy_flux_error2='8.37e-06', EG='0.73', time_epoch_completed='1629090113.98', return_code='0', job_id='388634', GAL2='0.89', EG2='0.70', return_code2='102', energy_flux_error='8.55e-06', photon_flux_error2='3.59e-08', ts2='2.09', photon_index='2.57' WHERE bin_id='411' AND source_name='4FGL J0226.3-1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 388634: <4FGL_J0226.3-1845_daily_bin411> in cluster <slac> Done

Job <4FGL_J0226.3-1845_daily_bin411> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 21:45:41 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:47:08 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:47:08 2021
Terminated at Sun Aug 15 22:01:56 2021
Results reported at Sun Aug 15 22:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.3-1845_daily_bin411 36.5838 -18.763 345859201 346118401 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 :                                   860.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            975 sec.

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

