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


Performing analysis on: 4FGL_J0226.3-1845_daily_bin836
RA = 36.5838, Dec = -18.763
tmin = 456019201, tmax = 456278401
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='390227', job_status='RUN', time_executed='2021-08-15 21:56:05.651916', time_epoch_executed='1629089765.65' WHERE source_name='4FGL J0226.3-1845' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390227/ft1_4FGL_J0226.3-1845_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390227/ft1_4FGL_J0226.3-1845_daily_bin836.fits outfile=/scratch/kocevski/390227/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin836.fits ra=36.5838 dec=-18.763 rad=12.0 tmin=456019201.0 tmax=456278401.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.12
user 6.61
sys 4.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390227/ft1_filtered_4FGL_J0226.3-1845_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/390227/ltcube_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.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/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits
.....................!
real 17.85
user 12.91
sys 4.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390227/ft1_filtered_4FGL_J0226.3-1845_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/390227/ltcube_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.fits outfile=/scratch/kocevski/390227/expmap_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.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/390227/ltcube_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.fits
.....................!
real 197.61
user 186.14
sys 10.86

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/390227/ft1_filtered_4FGL_J0226.3-1845_daily_bin836.fits scfile=/scratch/kocevski/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits outfile=/scratch/kocevski/390227/cmap_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.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.49
user 0.37
sys 4.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390227/ft1_filtered_4FGL_J0226.3-1845_daily_bin836.fits scfile=/scratch/kocevski/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits outfile=/scratch/kocevski/390227/cmap_HighResolution_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.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.47
user 0.37
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/390227/ft1_filtered_4FGL_J0226.3-1845_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/390227/ft2_4FGL_J0226.3-1845_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/390227/Model_4FGL_J0226.3-1845_daily_bin836.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/390227/ft1_filtered_4FGL_J0226.3-1845_daily_bin836.fits.....................!
real 49.69
user 42.83
sys 6.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63388       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3413       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29266E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    110.46       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3334       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9147       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.593       1.0000         .10000E-03   10000.    
    19 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56354       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0895       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=   4560.055     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2525 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.896       -.66567E-07** at limit **
   2  norm          2.4599        1.6731       -.12918E-06   -.20820E-03
   3  Prefactor     6.8928        4.6687       -.58205E-06   -.20977E-03
   4  Prefactor     .10000E-03    2.9397       -.13872E-07** at limit **
   5  Prefactor     7.6323        11.212        .54364E-07   -.71031E-04
   6  Prefactor     1.6297        4.4477       -.52963E-06   -.66776E-03
   7  Prefactor     .55702        8.1337        .79562E-06   -.10448E-03
   8  Prefactor     .10000E-03    12.975       -.24114E-06** at limit **
   9  norm          3.5676        149.95        .15936E-04   -.18159E-04
  10  Prefactor     .10002E-03    4.0457        .54034E-06** at limit **
  11  Prefactor     110.45        51.263       -.17131E-04   -.10455E-03
  12  Prefactor     26.673        59.104       -.13875E-04    .18580E-05
  13  Prefactor     .10000E-03    18.577        .15778E-06** at limit **
  14  Prefactor     1.3478        204.64       -.55958E-04   -.20559E-04
  15  norm          1.9140        1.7769        .35536E-07    .61345E-04
  16  Prefactor     .10000E-03    5.7218       -.14605E-06** at limit **
  17  Prefactor     28.785        42.366        .29260E-05    .97852E-06
  18  Prefactor     29.576        28.737       -.17207E-05    .39335E-03
  19  norm          .10000E-03    2.0700        .14999E-07** at limit **
  20  Prefactor     .10000E-03    4.2901       -.39164E-07** at limit **
  21  Normalizat    .56394        .16932        .69557E-05   -.85649E-04
  22  Prefactor     1.0893        .17556       -.90058E-06    .19071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.45992
  Prefactor  = 6.89278
  Prefactor  = 0.0001
  Prefactor  = 7.6323
  Prefactor  = 1.62974
  Prefactor  = 0.557021
  Prefactor  = 0.0001
  norm       = 3.56759
  Prefactor  = 0.000100024
  Prefactor  = 110.45
  Prefactor  = 26.6735
  Prefactor  = 0.0001
  Prefactor  = 1.34783
  norm       = 1.91395
  Prefactor  = 0.0001
  Prefactor  = 28.7847
  Prefactor  = 29.5762
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.563941
  Prefactor  = 1.08935
 **********
 **   18 **HESSE 
 **********

 FCN=   4560.055     FROM HESSE     STATUS=OK           356 CALLS     2881 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4599        1.6702        .68642E-04   -1.5394    
   3  Prefactor     6.8928        4.6745        .11193E-03   -1.5183    
   4  Prefactor     .10000E-03    2.9445        .11306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6323        11.199        .14510E-03   -1.5155    
   6  Prefactor     1.6297        4.4238        .21804E-03   -1.5453    
   7  Prefactor     .55702        72.375        .28306E-02   -1.5559    
   8  Prefactor     .10000E-03    13.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5676        250.53        .22142E-03   -1.5330    
  10  Prefactor     .10002E-03    11.469        .39664E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     110.45        50.752        .19136E-03   -1.3602    
  12  Prefactor     26.673        59.171        .77470E-04   -1.4675    
  13  Prefactor     .10000E-03    18.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3478        199.98        .38010E-03   -1.5476    
  15  norm          1.9140        1.7631        .82369E-04   -1.5431    
  16  Prefactor     .10000E-03    5.9678        .31539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.785        42.364        .74663E-04   -1.4634    
  18  Prefactor     29.576        27.604        .73649E-04   -1.4620    
  19  norm          .10000E-03    2.1494        .18955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2930        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .56394        .19260        .24649E-03   -1.0954    
  22  Prefactor     1.0893        .20060        .20695E-03   -.89808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44801e-09
Minuit parameter uncertainties:
  1  1.13074e-05
  2  1.67021
  3  4.67477
  4  3.10847e-06
  5  11.2019
  6  4.42472
  7  12.7133
  8  2.63796e-05
  9  60.0553
  10  0.00104996
  11  50.7721
  12  59.3019
  13  0.000116947
  14  32.9468
  15  1.76311
  16  3.73147e-05
  17  42.4085
  18  27.6161
  19  1.62287e-06
  20  8.27427e-06
  21  0.192825
  22  0.200742
Done.

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

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.105e+02  5.077e+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.089e+00  2.007e-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:  5.639e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.49
Ra Dec: 36.584 -18.763
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 9.98e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.24e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4560.03011451
delta logL = 0.0245709940655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4560.02919326
delta logL = 0.0254922451622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    100.11       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6815       1.0000          .0000       10.000    
     3 'Normalizat'    .55629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0960       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=   4560.029     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      288 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     100.14        68.179        .20090E-03    .30670E-04
   2  Index         2.6818        .52307        .44350E-02    .22153E-04
   3  Normalizat    .55649        .17680        .24799E-03   -.23655E-04
   4  Prefactor     1.0957        .19897        .20644E-03    .80115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 100.141
  Index      = 2.68181
  Normalizat = 0.556493
  Prefactor  = 1.09569
 **********
 **   18 **HESSE 
 **********

 FCN=   4560.029     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     100.14        64.981        .80362E-05   -1.3703    
   2  Index         2.6818        .49824        .17740E-03   -.48210    
   3  Normalizat    .55649        .17671        .99197E-05   -1.0986    
   4  Prefactor     1.0957        .19887        .41288E-04   -.89604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76922e-11
Minuit parameter uncertainties:
  1  65.027
  2  0.499296
  3  0.176884
  4  0.199004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390227': 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) = 4560.02919079
delta logL = 0.0254947193607

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.001e+02  6.503e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.682e+00  4.993e-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:  1.096e+00  1.990e-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:  5.565e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.52
Ra Dec: 36.584 -18.763
Photon Index (Free Index): 2.68 +/- 0.50
Photon Flux (Free Index): 1.05e-07 +/- 4.96e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.25e-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/390227/cmap_HighResolution_456019201_456278401_4FGL_J0226.3-1845_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.98e-08', energy_flux2='2.55e-05', photon_flux_error='4.58e-08', dlogl='2.55e-02', energy_flux='2.69e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-15 22:06:11.330391', photon_index_error2='0.50', photon_index2='2.68', ts='9.49', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.56', time_epoch_completed='1629090371.33', return_code='0', job_id='390227', GAL2='1.10', EG2='0.56', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.96e-08', ts2='9.52', photon_index='2.57' WHERE bin_id='836' AND source_name='4FGL J0226.3-1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:06:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 390227: <4FGL_J0226.3-1845_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.3-1845_daily_bin836 36.5838 -18.763 456019201 456278401 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            933 sec.

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

