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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin137
RA = 36.6313, Dec = 9.6351
tmin = 274838401, tmax = 275097601
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='394644', job_status='RUN', time_executed='2021-08-15 22:08:51.602118', time_epoch_executed='1629090531.6' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394644/ft1_4FGL_J0226.5+0938_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394644/ft1_4FGL_J0226.5+0938_daily_bin137.fits outfile=/scratch/kocevski/394644/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin137.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=274838401.0 tmax=275097601.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.86
user 3.23
sys 0.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.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/394644/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin137.fits evtable="EVENTS" outfile="/scratch/kocevski/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.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.90
user 0.29
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/394644/ltcube_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.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/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits
.....................!
real 12.63
user 11.85
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/394644/ltcube_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.fits outfile=/scratch/kocevski/394644/expmap_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.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/394644/ltcube_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.fits
.....................!
real 157.36
user 151.77
sys 5.21

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/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.fits scfile=/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits outfile=/scratch/kocevski/394644/cmap_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.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.91
user 0.32
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.fits scfile=/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits outfile=/scratch/kocevski/394644/cmap_HighResolution_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.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 0.92
user 0.32
sys 0.59

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.fits', '/scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits', expMap='/scratch/kocevski/394644/expmap_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.fits', expCube='/scratch/kocevski/394644/ltcube_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/394644/Model_4FGL_J0226.5+0938_daily_bin137.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/394644/ft1_filtered_4FGL_J0226.5+0938_daily_bin137.fits
Spacecraft file(s): /scratch/kocevski/394644/ft2_4FGL_J0226.5+0938_daily_bin137.fits
Exposure map: /scratch/kocevski/394644/expmap_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.fits
Exposure cube: /scratch/kocevski/394644/ltcube_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/394644/Model_4FGL_J0226.5+0938_daily_bin137.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) = 6694.90732199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5581       1.0000         .10000E-03   10000.    
     2 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.890       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5818       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.375       1.0000         .10000E-03   10000.    
    19 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.338       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.220       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1480       1.0000         .10000E-03   10000.    
    24 'norm      '    5.8106       1.0000         .10000E-03   10000.    
    25 'norm      '    .86023E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0069       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76690       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1297       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=   6694.902     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3664 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5586        7.4874        .15797E-06    .53710E-04
   2  norm          .10000E-03    20.430        .28630E-05** at limit **
   3  Prefactor     5.0570        5.6112        .43346E-06    .30188E-03
   4  Prefactor     .10000E-03    1.2517       -.37123E-08** at limit **
   5  norm          17.079        7.0230       -.68652E-08   -.44509E-05
   6  Prefactor     .10000E-03    1.1065       -.25205E-07** at limit **
   7  norm          1.1784        .80329        .33961E-07    .71120E-04
   8  Prefactor     .10000E-03    9.4180        .47176E-06** at limit **
   9  Prefactor     41.883        45.557        .18593E-05    .11196E-03
  10  Prefactor     .10000E-03    3.0556        .14542E-06** at limit **
  11  Prefactor     81.705        68.905        .19487E-05    .10540E-03
  12  Prefactor     5.6667        8.6850        .17839E-05    .80442E-03
  13  Prefactor     .10000E-03    6.3266        .58026E-07** at limit **
  14  Prefactor     7.8820        8.6426        .16676E-06    .18439E-03
  15  Prefactor     .10000E-03    11.369       -.14333E-05** at limit **
  16  norm          1.5819        .64284       -.70415E-08    .71994E-03
  17  Prefactor     .10000E-03    28.934       -.43904E-05** at limit **
  18  Prefactor     31.381        22.283       -.45988E-06   -.68624E-04
  19  norm          .10000E-03    7.7787       -.80812E-06** at limit **
  20  Prefactor     .10000E-03    8.7398        .84454E-06** at limit **
  21  Prefactor     17.331        38.809        .21799E-05    .13713E-03
  22  Prefactor     15.219        17.316        .21310E-06    .32653E-04
  23  Prefactor     7.1485        7.0918        .86729E-06    .64438E-03
  24  norm          5.8182        10.380        .58278E-07    .11791E-03
  25  norm          .53049E-01    5.8521       -.28115E-05    .13589E-02
  26  Prefactor     2.0068        6.5904        .41742E-06    .13815E-03
  27  norm          .10000E-03    2.9856        .59306E-09** at limit **
  28  Normalizat    .76667        .23358       -.13344E-05    .99548E-04
  29  Prefactor     1.1300        .11487       -.15321E-06    .29139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.55861
  norm       = 0.000100002
  Prefactor  = 5.05705
  Prefactor  = 0.0001
  norm       = 17.0789
  Prefactor  = 0.0001
  norm       = 1.17844
  Prefactor  = 0.0001
  Prefactor  = 41.8829
  Prefactor  = 0.0001
  Prefactor  = 81.7051
  Prefactor  = 5.66667
  Prefactor  = 0.0001
  Prefactor  = 7.88197
  Prefactor  = 0.000100001
  norm       = 1.58186
  Prefactor  = 0.000100004
  Prefactor  = 31.3807
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3312
  Prefactor  = 15.2188
  Prefactor  = 7.14854
  norm       = 5.8182
  norm       = 0.0530492
  Prefactor  = 2.00678
  norm       = 0.0001
  Normalizat = 0.766667
  Prefactor  = 1.12996
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.902     FROM HESSE     STATUS=OK           557 CALLS     4221 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5586        7.5037        .64811E-03   -1.5090    
   2  norm          .10000E-03    20.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0570        5.6152        .89398E-03   -1.5258    
   4  Prefactor     .10000E-03    1.2753        .89327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.079        7.0200        .96911E-04   -1.4881    
   6  Prefactor     .10000E-03    1.1337        .16796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1784        .79625        .58388E-04   -1.5491    
   8  Prefactor     .10000E-03    9.4309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.883        45.622        .61937E-04   -1.4413    
  10  Prefactor     .10000E-03    3.0653        .13967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     81.705        68.911        .44432E-04   -1.3898    
  12  Prefactor     5.6667        8.7643        .84373E-03   -1.5232    
  13  Prefactor     .10000E-03    6.3309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8820        8.6365        .71417E-03   -1.5146    
  15  Prefactor     .10000E-03    11.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5819        .63617        .39588E-04   -1.5456    
  17  Prefactor     .10000E-03    29.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.381        22.386        .71533E-04   -1.4587    
  19  norm          .10000E-03    7.8303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.331        39.005        .96188E-04   -1.4875    
  22  Prefactor     15.219        17.318        .10266E-03   -1.4928    
  23  Prefactor     7.1485        7.0939        .75018E-03   -1.5173    
  24  norm          5.8182        10.384        .16661E-03   -1.5226    
  25  norm          .53049E-01    4.3852        .41169E-01   -1.5662    
  26  Prefactor     2.0068        6.5610        .29228E-03   -1.5425    
  27  norm          .10000E-03    2.9971        .13806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .76667        .25294        .39755E-03   -1.0132    
  29  Prefactor     1.1300        .12644        .17549E-03   -.88515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33356e-09
Minuit parameter uncertainties:
  1  7.50442
  2  0.00035594
  3  5.6158
  4  4.21583e-08
  5  7.02035
  6  1.61042e-06
  7  0.796256
  8  3.99238e-05
  9  45.6596
  10  7.22149e-06
  11  68.9784
  12  8.76624
  13  7.00585e-06
  14  8.63787
  15  0.000152873
  16  0.636168
  17  0.00067778
  18  22.3921
  19  7.35513e-05
  20  5.9509e-05
  21  39.0626
  22  17.3232
  23  7.09474
  24  10.3868
  25  0.963797
  26  6.56334
  27  2.86104e-06
  28  0.253328
  29  0.126471
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  8.171e+01  6.898e+01  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.130e+00  1.265e-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:  7.667e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.84
Ra Dec: 36.631 9.635
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.70e-05

TS (Fixed Index): 2.84
Ra Dec: 36.631 9.635
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/394644/likelihoodResults_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.78251123
delta logL = 0.119975173664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.77670951
delta logL = 0.125776900352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.075       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7388       1.0000          .0000       10.000    
     3 'Normalizat'    .78075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1286       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=   6694.777     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      303 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.085        91.419        .20503E-03   -.62488E-03
   2  Index         1.7387        .88981        .12348E-01   -.37157E-03
   3  Normalizat    .78067        .23159        .39443E-03    .21862E-03
   4  Prefactor     1.1286        .12206        .17563E-03    .49149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.0851
  Index      = 1.73873
  Normalizat = 0.780673
  Prefactor  = 1.1286
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.777     FROM HESSE     STATUS=OK            23 CALLS      326 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.085        92.485        .41007E-04   -1.3744    
   2  Index         1.7387        .90041        .49392E-03   -.71055    
   3  Normalizat    .78067        .23162        .15777E-04   -1.0079    
   4  Prefactor     1.1286        .12211        .35126E-04   -.88558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45123e-08
Minuit parameter uncertainties:
  1  92.6242
  2  0.909101
  3  0.231908
  4  0.122137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394644': 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) = 6694.77670944
delta logL = 0.125776968657

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  9.609e+01  9.262e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.739e+00  9.091e-01  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.129e+00  1.221e-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:  7.807e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 36.631 9.635
Photon Index (Free Index): 1.74 +/- 0.91
Photon Flux (Free Index): 2.20e-08 +/- 4.27e-08
Energy Flux (Free Index): 3.18e-05 +/- 4.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/394644/cmap_HighResolution_274838401_275097601_4FGL_J0226.5+0938_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='3.18e-05', photon_flux_error='3.44e-08', dlogl='1.26e-01', energy_flux='2.01e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-08-15 22:20:49.153265', photon_index_error2='0.91', photon_index2='1.74', ts='2.84', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='4.72e-05', EG='0.77', time_epoch_completed='1629091249.15', return_code='0', job_id='394644', GAL2='1.13', EG2='0.78', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.27e-08', ts2='3.09', photon_index='2.15' WHERE bin_id='137' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:20:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 394644: <4FGL_J0226.5+0938_daily_bin137> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin137> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 22:05:34 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:06:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 22:06:08 2021
Terminated at Sun Aug 15 22:20:49 2021
Results reported at Sun Aug 15 22:20:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin137 36.6313 9.6351 274838401 275097601 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 :                                   721.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            915 sec.

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

