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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1188
RA = 36.6313, Dec = 9.6351
tmin = 547257601, tmax = 547516801
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='399198', job_status='RUN', time_executed='2021-08-15 22:20:58.833611', time_epoch_executed='1629091258.83' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399198/ft1_4FGL_J0226.5+0938_daily_bin1188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399198/ft1_4FGL_J0226.5+0938_daily_bin1188.fits outfile=/scratch/kocevski/399198/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1188.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=547257601.0 tmax=547516801.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 3.47
user 2.72
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.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/399198/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1188.fits evtable="EVENTS" outfile="/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.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 0.97
user 0.28
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits" evtable="EVENTS" scfile=/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits sctable="SC_DATA" outfile=/scratch/kocevski/399198/ltcube_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.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/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits
.....................!
real 11.44
user 10.50
sys 0.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits evtable="EVENTS" scfile=/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits sctable="SC_DATA" expcube=/scratch/kocevski/399198/ltcube_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.fits outfile=/scratch/kocevski/399198/expmap_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.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/399198/ltcube_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.fits
.....................!
real 157.07
user 152.22
sys 4.48

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0226.5+0938 @ 36.6313 9.6351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits scfile=/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits outfile=/scratch/kocevski/399198/cmap_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.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.6313 yref=9.6351 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 0.99
user 0.32
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits scfile=/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits outfile=/scratch/kocevski/399198/cmap_HighResolution_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.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.6313 yref=9.6351 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 1.00
user 0.31
sys 0.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits evtable="EVENTS" scfile=/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/399198/Model_4FGL_J0226.5+0938_daily_bin1188.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/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits.....................!
real 53.88
user 52.02
sys 1.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits', '/scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits', expMap='/scratch/kocevski/399198/expmap_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.fits', expCube='/scratch/kocevski/399198/ltcube_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/399198/Model_4FGL_J0226.5+0938_daily_bin1188.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0226.5+0938'

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.451e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/399198/ft1_filtered_4FGL_J0226.5+0938_daily_bin1188.fits
Spacecraft file(s): /scratch/kocevski/399198/ft2_4FGL_J0226.5+0938_daily_bin1188.fits
Exposure map: /scratch/kocevski/399198/expmap_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.fits
Exposure cube: /scratch/kocevski/399198/ltcube_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/399198/Model_4FGL_J0226.5+0938_daily_bin1188.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) = 4055.66995272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.869       1.0000         .10000E-03   10000.    
     2 'norm      '    23.435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.996       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.247       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.117       1.0000         .10000E-03   10000.    
    16 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.658       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.931       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    132.63       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.949       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.328       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .81828       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3246       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4055.643     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3699 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.870        34.856       -.15951E-05    .31264E-07
   2  norm          23.435        31.981       -.26491E-05    .11928E-05
   3  Prefactor     .10000E-03    6.4612       -.84304E-07** at limit **
   4  Prefactor     .10000E-03    2.1163       -.86277E-07** at limit **
   5  norm          22.122        13.275       -.50615E-06    .69320E-04
   6  Prefactor     .10000E-03    3.9901        .53560E-08** at limit **
   7  norm          11.996        7.5980        .24174E-06    .55645E-04
   8  Prefactor     .10000E-03    23.102        .11311E-04** at limit **
   9  Prefactor     31.223        73.328       -.30536E-04    .47387E-05
  10  Prefactor     .10000E-03    15.015       -.42588E-05** at limit **
  11  Prefactor     .10000E-03    199.55       -.65664E-04** at limit **
  12  Prefactor     .10000E-03    8.8694        .59130E-06** at limit **
  13  Prefactor     .10000E-03    35.534       -.25955E-04** at limit **
  14  Prefactor     .10000E-03    15.307       -.46044E-05** at limit **
  15  Prefactor     83.099        29.447        .74672E-05   -.39833E-04
  16  norm          .10000E-03    .47916       -.13007E-06** at limit **
  17  Prefactor     .10000E-03    42.511        .21265E-04** at limit **
  18  Prefactor     42.596        85.219       -.76926E-04    .23625E-04
  19  norm          .10000E-03    9.4352       -.14126E-05** at limit **
  20  Prefactor     29.885        36.404       -.79432E-05   -.39845E-05
  21  Prefactor     .10001E-03    176.08        .47079E-04** at limit **
  22  Prefactor     132.63        64.451       -.10156E-05   -.21504E-04
  23  Prefactor     .10000E-03    14.013        .76709E-05** at limit **
  24  norm          .10000E-03    17.102       -.24086E-05** at limit **
  25  norm          12.945        14.935        .83469E-06   -.21163E-04
  26  Prefactor     28.322        44.866       -.44793E-05   -.42930E-05
  27  norm          .10000E-03    5.9662       -.29799E-07** at limit **
  28  Normalizat    .81796        .43815        .11595E-04    .34454E-04
  29  Prefactor     1.3248        .19331        .15189E-05   -.44397E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8699
  norm       = 23.4353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1224
  Prefactor  = 0.0001
  norm       = 11.9964
  Prefactor  = 0.0001
  Prefactor  = 31.2226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 83.0992
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.5963
  norm       = 0.0001
  Prefactor  = 29.8847
  Prefactor  = 0.000100005
  Prefactor  = 132.626
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.945
  Prefactor  = 28.3223
  norm       = 0.0001
  Normalizat = 0.817963
  Prefactor  = 1.32478
 **********
 **   18 **HESSE 
 **********

 FCN=   4055.643     FROM HESSE     STATUS=OK           545 CALLS     4244 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.870        34.851        .74565E-04   -1.4633    
   2  norm          23.435        31.980        .82744E-04   -1.4739    
   3  Prefactor     .10000E-03    6.4736        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1367        .90402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.122        13.262        .85162E-04   -1.4767    
   6  Prefactor     .10000E-03    4.0115        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.996        7.5969        .57829E-03   -1.5015    
   8  Prefactor     .10000E-03    23.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.223        73.277        .71679E-04   -1.4590    
  10  Prefactor     .10000E-03    15.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    199.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     83.099        29.293        .44059E-04   -1.3882    
  16  norm          .10000E-03    .48825        .84782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.596        85.177        .61379E-04   -1.4402    
  19  norm          .10000E-03    9.4429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.885        36.145        .73234E-04   -1.4614    
  21  Prefactor     .10001E-03    176.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     132.63        64.611        .34965E-04   -1.3400    
  23  Prefactor     .10000E-03    14.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    17.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.945        14.981        .11131E-03   -1.4988    
  26  Prefactor     28.322        44.857        .75272E-04   -1.4643    
  27  norm          .10000E-03    5.9739        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .81796        .45340        .55714E-03   -.99406    
  29  Prefactor     1.3248        .20522        .20207E-03   -.82573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96605e-10
Minuit parameter uncertainties:
  1  34.8758
  2  32.0032
  3  1.52566e-05
  4  1.25318e-05
  5  13.2642
  6  1.39887e-07
  7  7.5975
  8  4.85407e-05
  9  73.4895
  10  0.00011974
  11  3.24631e-06
  12  7.39662e-05
  13  0.000537038
  14  2.99698e-05
  15  29.2977
  16  9.85545e-06
  17  0.000160211
  18  85.4213
  19  2.49309e-05
  20  36.1716
  21  0.00188808
  22  64.6456
  23  8.7041e-05
  24  3.91224e-05
  25  14.9857
  26  44.9101
  27  1.06843e-05
  28  0.455518
  29  0.205341
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.246e-06  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.325e+00  2.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.180e-01  4.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 2.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399198/likelihoodResults_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.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) = 4055.64289909
delta logL = -2.37020681197e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4055.64287541
delta logL = -2.02867340704e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1222       1.0000          .0000       10.000    
     3 'Normalizat'    .81796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   4055.643     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      272 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9861.8        .18142E-02** at limit **
   2  Index         2.1389        5.4145        .50000       -.75335E-06
   3  Normalizat    .81794        .18357        .55713E-03   -.11791E-03
   4  Prefactor     1.3248        .83596E-01    .20207E-03    .38913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13893
  Normalizat = 0.817945
  Prefactor  = 1.32479
 **********
 **   18 **HESSE 
 **********

 FCN=   4055.643     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    221.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1389        6.0458        .50000       -.60920    
   3  Normalizat    .81794        .42621        .22285E-04   -.99406    
   4  Prefactor     1.3248        .19467        .40414E-04   -.82573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52823e-09
Minuit parameter uncertainties:
  1  0.000325157
  2  4.50763
  3  0.427969
  4  0.194774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399198': 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) = 4055.64287539
delta logL = -2.92857293971e-09

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.252e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.139e+00  4.508e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.918e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.325e+00  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.179e-01  4.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.631 9.635

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/399198/cmap_HighResolution_547257601_547516801_4FGL_J0226.5+0938_daily_bin1188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.11e-07', time_completed='2021-08-15 22:29:44.717044', job_id='399198', GAL2='1.32', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629091784.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='-2.93e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1188' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:29:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 399198: <4FGL_J0226.5+0938_daily_bin1188> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1188> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 22:20:20 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:20:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 22:20:33 2021
Terminated at Sun Aug 15 22:29:45 2021
Results reported at Sun Aug 15 22:29:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1188 36.6313 9.6351 547257601 547516801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0226.5+0938 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   531.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             391.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            565 sec.

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

