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


Performing analysis on: 4FGL_J0226.3-1845_daily_bin225
RA = 36.5838, Dec = -18.763
tmin = 297648001, tmax = 297907201
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='387320', job_status='RUN', time_executed='2021-08-15 21:47:43.273419', time_epoch_executed='1629089263.27' WHERE source_name='4FGL J0226.3-1845' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387320/ft1_4FGL_J0226.3-1845_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387320/ft1_4FGL_J0226.3-1845_daily_bin225.fits outfile=/scratch/kocevski/387320/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin225.fits ra=36.5838 dec=-18.763 rad=12.0 tmin=297648001.0 tmax=297907201.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 7.98
user 3.49
sys 4.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387320/ft1_filtered_4FGL_J0226.3-1845_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/387320/ltcube_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.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/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits
.....................!
real 18.74
user 13.55
sys 5.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387320/ft1_filtered_4FGL_J0226.3-1845_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/387320/ltcube_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.fits outfile=/scratch/kocevski/387320/expmap_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.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/387320/ltcube_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.fits
.....................!
real 197.59
user 186.62
sys 10.19

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/387320/ft1_filtered_4FGL_J0226.3-1845_daily_bin225.fits scfile=/scratch/kocevski/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits outfile=/scratch/kocevski/387320/cmap_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.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 4.68
user 0.39
sys 4.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387320/ft1_filtered_4FGL_J0226.3-1845_daily_bin225.fits scfile=/scratch/kocevski/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits outfile=/scratch/kocevski/387320/cmap_HighResolution_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.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 4.77
user 0.41
sys 4.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387320/ft1_filtered_4FGL_J0226.3-1845_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/387320/ft2_4FGL_J0226.3-1845_daily_bin225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387320/Model_4FGL_J0226.3-1845_daily_bin225.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/387320/ft1_filtered_4FGL_J0226.3-1845_daily_bin225.fits.....................!
real 46.20
user 38.88
sys 6.79

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.668       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3544       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    134.01       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.091       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7391       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.7628       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.886       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77270       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1019       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=   3660.023     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2313 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.664        55.591       -.45399E-05   -.69412E-05
   2  norm          3.6656        2.6459       -.20516E-06   -.99228E-04
   3  Prefactor     .10000E-03    2.0348        .14709E-06** at limit **
   4  Prefactor     7.3425        20.116       -.20132E-05   -.10377E-03
   5  Prefactor     .10000E-03    16.218       -.10101E-04** at limit **
   6  Prefactor     .10000E-03    4.6434        .42179E-05** at limit **
   7  Prefactor     .10000E-03    4.4284       -.11191E-05** at limit **
   8  Prefactor     .10000E-03    9.2962       -.78172E-05** at limit **
   9  norm          .10000E-03    16.122       -.90341E-05** at limit **
  10  Prefactor     .10000E-03    6.1909        .22875E-05** at limit **
  11  Prefactor     .10000E-03    12.690        .97448E-05** at limit **
  12  Prefactor     134.01        101.18        .21503E-05   -.12406E-04
  13  Prefactor     17.073        36.474       -.24878E-04   -.40252E-04
  14  Prefactor     .10000E-03    22.243        .12368E-04** at limit **
  15  norm          5.7382        3.5777        .78774E-07   -.22471E-03
  16  Prefactor     .10000E-03    4.9534       -.38764E-05** at limit **
  17  Prefactor     .10000E-03    72.309       -.42195E-05** at limit **
  18  Prefactor     .10000E-03    10.705        .64866E-05** at limit **
  19  norm          9.7629        5.1329       -.22277E-07   -.29772E-04
  20  Prefactor     14.885        22.475       -.12822E-05    .58192E-05
  21  Normalizat    .77305        .21744        .23284E-05   -.19255E-04
  22  Prefactor     1.1015        .22041        .79982E-06    .54334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6642
  norm       = 3.66556
  Prefactor  = 0.0001
  Prefactor  = 7.34252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.011
  Prefactor  = 17.0733
  Prefactor  = 0.0001
  norm       = 5.73819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7629
  Prefactor  = 14.8848
  Normalizat = 0.773052
  Prefactor  = 1.10153
 **********
 **   18 **HESSE 
 **********

 FCN=   3660.023     FROM HESSE     STATUS=OK           336 CALLS     2649 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.664        55.529        .62856E-04   -1.4432    
   2  norm          3.6656        2.6483        .79297E-04   -1.5325    
   3  Prefactor     .10000E-03    2.0469        .84252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3425        20.157        .14790E-03   -1.5166    
   5  Prefactor     .10000E-03    16.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6808        .12723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4494        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2967        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2469        .14710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     134.01        101.19        .34788E-04   -1.3388    
  13  Prefactor     17.073        36.589        .96879E-04   -1.4881    
  14  Prefactor     .10000E-03    22.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7382        3.5859        .83067E-04   -1.5229    
  16  Prefactor     .10000E-03    4.9674        .13151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.7629        5.1316        .95149E-04   -1.5083    
  20  Prefactor     14.885        22.557        .10381E-03   -1.4936    
  21  Normalizat    .77305        .24929        .25711E-03   -1.0108    
  22  Prefactor     1.1015        .25294        .23120E-03   -.89418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47071e-10
Minuit parameter uncertainties:
  1  55.5999
  2  2.64838
  3  4.47461e-06
  4  20.176
  5  7.35423e-06
  6  1.13981e-05
  7  4.68568e-06
  8  2.70387e-06
  9  5.45107e-06
  10  7.10875e-05
  11  2.95373e-06
  12  101.324
  13  36.6375
  14  5.29808e-05
  15  3.58601
  16  7.6646e-06
  17  2.02615e-05
  18  8.31105e-06
  19  5.13185
  20  22.5701
  21  0.249659
  22  0.253216
Done.

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

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.954e-06  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.102e+00  2.532e-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.731e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/387320/likelihoodResults_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3660.02292398
delta logL = -0.000372714122022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3660.02255263
delta logL = -1.36337939693e-06

Fit tolerance = 1e-08

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

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

 FCN=   3660.023     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      251 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.747        .18142E-01** at limit **
   2  Index         1.9971        5.9923        .50000        .82946E-07
   3  Normalizat    .77305        .99820E-02    .25711E-03   -.20017E-03
   4  Prefactor     1.1015        .10596E-01    .23120E-03   -.22142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99707
  Normalizat = 0.773053
  Prefactor  = 1.10153
 **********
 **   18 **HESSE 
 **********

 FCN=   3660.023     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    430.74        .23500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9971        6.7074        .50000       -.64423    
   3  Normalizat    .77305        .27908E-01    .10284E-04   -1.0108    
   4  Prefactor     1.1015        .29624E-01    .46239E-04   -.89418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.85754e-10
Minuit parameter uncertainties:
  1  5.45215e-05
  2  1241.14
  3  0.0279085
  4  0.0296242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387320': 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) = 3660.02255049
delta logL = 7.82353708928e-07

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.452e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.997e+00  1.241e+03  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.102e+00  2.962e-02  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.731e-01  2.791e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.584 -18.763

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/387320/cmap_HighResolution_297648001_297907201_4FGL_J0226.3-1845_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.10e-08', time_completed='2021-08-15 21:57:07.656379', job_id='387320', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1629089827.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='225' AND source_name='4FGL J0226.3-1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 387320: <4FGL_J0226.3-1845_daily_bin225> in cluster <slac> Done

Job <4FGL_J0226.3-1845_daily_bin225> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 21:40:57 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:43:17 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:43:17 2021
Terminated at Sun Aug 15 21:57:09 2021
Results reported at Sun Aug 15 21:57:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.3-1845_daily_bin225 36.5838 -18.763 297648001 297907201 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 :                                   625.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            972 sec.

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

