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


Performing analysis on: 4FGL_J0226.3-1845_daily_bin284
RA = 36.5838, Dec = -18.763
tmin = 312940801, tmax = 313200001
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='388453', job_status='RUN', time_executed='2021-08-15 21:49:00.211855', time_epoch_executed='1629089340.21' WHERE source_name='4FGL J0226.3-1845' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/388453

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/388453/ft1_4FGL_J0226.3-1845_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/388453/ft1_4FGL_J0226.3-1845_daily_bin284.fits outfile=/scratch/kocevski/388453/ft1_filteredMKT_4FGL_J0226.3-1845_daily_bin284.fits ra=36.5838 dec=-18.763 rad=12.0 tmin=312940801.0 tmax=313200001.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.12
user 3.25
sys 3.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/388453/ft1_filtered_4FGL_J0226.3-1845_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/388453/ltcube_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.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/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits
.....................!
real 17.68
user 13.14
sys 4.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/388453/ft1_filtered_4FGL_J0226.3-1845_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/388453/ltcube_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.fits outfile=/scratch/kocevski/388453/expmap_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.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/388453/ltcube_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.fits
.....................!
real 198.28
user 187.61
sys 10.11

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/388453/ft1_filtered_4FGL_J0226.3-1845_daily_bin284.fits scfile=/scratch/kocevski/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits outfile=/scratch/kocevski/388453/cmap_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.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.16
user 0.39
sys 3.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/388453/ft1_filtered_4FGL_J0226.3-1845_daily_bin284.fits scfile=/scratch/kocevski/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits outfile=/scratch/kocevski/388453/cmap_HighResolution_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.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.23
user 0.40
sys 3.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/388453/ft1_filtered_4FGL_J0226.3-1845_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/388453/ft2_4FGL_J0226.3-1845_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/388453/Model_4FGL_J0226.3-1845_daily_bin284.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/388453/ft1_filtered_4FGL_J0226.3-1845_daily_bin284.fits.....................!
real 65.23
user 59.05
sys 5.85

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    26.461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.249       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.390       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9795       1.0000         .10000E-03   10000.    
    17 'Prefactor '    129.91       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1777       1.0000         .10000E-03   10000.    
    19 'norm      '    8.0520       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4592       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74482       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98527       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=   6605.826     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2330 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.603       -.15136E-06** at limit **
   2  norm          1.2399        1.4848       -.36001E-07   -.88418E-04
   3  Prefactor     5.2216        3.2522       -.58844E-07    .12101E-04
   4  Prefactor     2.0939        3.6793        .79603E-06   -.19167E-02
   5  Prefactor     3.0819        10.701        .24820E-06   -.57449E-03
   6  Prefactor     8.0473        5.1013        .21060E-07   -.89252E-03
   7  Prefactor     .10000E-03    4.5888        .29269E-06** at limit **
   8  Prefactor     .10000E-03    10.401       -.77381E-06** at limit **
   9  norm          26.451        26.791       -.94010E-05   -.89636E-04
  10  Prefactor     13.585        6.0397        .82930E-07    .82422E-05
  11  Prefactor     .10000E-03    26.538        .44657E-06** at limit **
  12  Prefactor     49.240        49.496       -.93283E-05   -.44567E-04
  13  Prefactor     .10000E-03    10.240        .76452E-06** at limit **
  14  Prefactor     25.386        24.303       -.37207E-05   -.38851E-04
  15  norm          5.7660        1.9386       -.11892E-07    .40740E-04
  16  Prefactor     3.9791        6.9944       -.36360E-06   -.45457E-04
  17  Prefactor     129.90        71.078       -.29838E-05   -.13377E-04
  18  Prefactor     1.1823        24.507        .50931E-07   -.37351E-04
  19  norm          8.0518        3.5957       -.65147E-07    .10605E-05
  20  Prefactor     4.4604        11.266        .37662E-06   -.97287E-05
  21  Normalizat    .74478        .15280        .13027E-05   -.13897E-04
  22  Prefactor     .98533        .16230        .55782E-06    .25219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.23993
  Prefactor  = 5.22161
  Prefactor  = 2.09393
  Prefactor  = 3.08191
  Prefactor  = 8.04728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.4514
  Prefactor  = 13.5852
  Prefactor  = 0.0001
  Prefactor  = 49.2402
  Prefactor  = 0.0001
  Prefactor  = 25.3864
  norm       = 5.76598
  Prefactor  = 3.97908
  Prefactor  = 129.901
  Prefactor  = 1.18233
  norm       = 8.05175
  Prefactor  = 4.46036
  Normalizat = 0.744781
  Prefactor  = 0.985327
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.826     FROM HESSE     STATUS=OK           348 CALLS     2678 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2399        1.4612        .10252E-03   -1.5485    
   3  Prefactor     5.2216        3.2493        .10972E-03   -1.5251    
   4  Prefactor     2.0939        6.2046        .14261E-02   -1.5419    
   5  Prefactor     3.0819        11.717        .11552E-02   -1.5357    
   6  Prefactor     8.0473        5.1257        .68123E-03   -1.5141    
   7  Prefactor     .10000E-03    4.6486        .17002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.451        26.860        .77877E-04   -1.4679    
  10  Prefactor     13.585        6.0434        .10867E-03   -1.4971    
  11  Prefactor     .10000E-03    26.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.240        49.569        .57142E-04   -1.4303    
  13  Prefactor     .10000E-03    10.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.386        24.250        .79500E-04   -1.4700    
  15  norm          5.7660        1.9399        .62562E-04   -1.5228    
  16  Prefactor     3.9791        6.9987        .20218E-03   -1.5309    
  17  Prefactor     129.90        70.993        .35325E-04   -1.3424    
  18  Prefactor     1.1823        24.720        .42171E-03   -1.5490    
  19  norm          8.0518        3.5928        .98515E-04   -1.5140    
  20  Prefactor     4.4604        11.247        .19069E-03   -1.5286    
  21  Normalizat    .74478        .17943        .24393E-03   -1.0215    
  22  Prefactor     .98533        .18949        .23674E-03   -.93220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43661e-09
Minuit parameter uncertainties:
  1  8.25111e-06
  2  1.46124
  3  3.24945
  4  6.20653
  5  11.7255
  6  5.12595
  7  7.53434e-05
  8  1.06106e-05
  9  26.8722
  10  6.04368
  11  0.000118548
  12  49.6101
  13  2.01193e-05
  14  24.2596
  15  1.93995
  16  7.00017
  17  71.0397
  18  10.817
  19  3.59294
  20  11.2523
  21  0.179575
  22  0.189615
Done.

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

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.185e-04  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.853e-01  1.896e-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.448e-01  1.796e-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: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/388453/likelihoodResults_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.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) = 6605.82646713
delta logL = -0.00017862459481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.82628968
delta logL = -1.17546278489e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2178       1.0000          .0000       10.000    
     3 'Normalizat'    .74478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98533       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=   6605.826     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10503E-03    7.7535        .18142E-01** at limit **
   2  Index         3.0757        8.4200        .50000        .10380E-04
   3  Normalizat    .74478        .23799E-02    .24393E-03    .60495E-04
   4  Prefactor     .98533        .26402E-02    .23674E-03    .41730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105034
  Index      = 3.07571
  Normalizat = 0.744782
  Prefactor  = 0.985327
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.826     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      308 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10503E-03    50.368        .66500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0757        6.3118        .50000       -.39505    
   3  Normalizat    .74478        .59528E-02    .97573E-05   -1.0215    
   4  Prefactor     .98533        .66039E-02    .94698E-05   -.93220    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.86258e-09
Minuit parameter uncertainties:
  1  0.0318723
  2  409.394
  3  0.00595279
  4  0.00660388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/388453': 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) = 6605.82628948
delta logL = -9.71923327597e-07

Extracting fit parameters...

4FGL J0226.3-1845
   Spectrum: PowerLaw
273    Prefactor:  1.050e-04  3.187e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  3.076e+00  4.094e+02  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:  9.853e-01  6.604e-03  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.448e-01  5.953e-03  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/388453/cmap_HighResolution_312940801_313200001_4FGL_J0226.3-1845_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-08-15 22:00:50.111479', job_id='388453', GAL2='0.99', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1629090050.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-9.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='284' AND source_name='4FGL J0226.3-1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 388453: <4FGL_J0226.3-1845_daily_bin284> in cluster <slac> Done

Job <4FGL_J0226.3-1845_daily_bin284> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 21:45:30 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:46:00 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:46:00 2021
Terminated at Sun Aug 15 22:00:51 2021
Results reported at Sun Aug 15 22:00:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.3-1845_daily_bin284 36.5838 -18.763 312940801 313200001 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 :                                   761.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            921 sec.

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

