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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin243
RA = 36.6313, Dec = 9.6351
tmin = 302313601, tmax = 302572801
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='394792', job_status='RUN', time_executed='2021-08-15 22:08:11.954561', time_epoch_executed='1629090491.95' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/394792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/394792/ft1_4FGL_J0226.5+0938_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/394792/ft2_4FGL_J0226.5+0938_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/394792/ft1_4FGL_J0226.5+0938_daily_bin243.fits outfile=/scratch/kocevski/394792/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin243.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=302313601.0 tmax=302572801.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 4.09
user 2.74
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/394792/ft2_4FGL_J0226.5+0938_daily_bin243.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/394792/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin243.fits evtable="EVENTS" outfile="/scratch/kocevski/394792/ft1_filtered_4FGL_J0226.5+0938_daily_bin243.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 1.51
user 0.31
sys 0.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/394792/ft1_filtered_4FGL_J0226.5+0938_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/394792/ft2_4FGL_J0226.5+0938_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/394792/ltcube_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.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/394792/ft2_4FGL_J0226.5+0938_daily_bin243.fits
.....................!
real 12.42
user 11.32
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/394792/ft1_filtered_4FGL_J0226.5+0938_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/394792/ft2_4FGL_J0226.5+0938_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/394792/ltcube_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.fits outfile=/scratch/kocevski/394792/expmap_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.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/394792/ltcube_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.fits
.....................!
real 155.27
user 150.65
sys 4.20

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/394792/ft1_filtered_4FGL_J0226.5+0938_daily_bin243.fits scfile=/scratch/kocevski/394792/ft2_4FGL_J0226.5+0938_daily_bin243.fits outfile=/scratch/kocevski/394792/cmap_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.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.97
user 0.31
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/394792/ft1_filtered_4FGL_J0226.5+0938_daily_bin243.fits scfile=/scratch/kocevski/394792/ft2_4FGL_J0226.5+0938_daily_bin243.fits outfile=/scratch/kocevski/394792/cmap_HighResolution_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.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.01
user 0.36
sys 0.64

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2776       1.0000         .10000E-03   10000.    
     2 'norm      '    38.399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.509       1.0000         .10000E-03   10000.    
     5 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11532E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11681E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.751       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3113       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    49.890       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5080       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86739       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=   7832.113     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3700 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2779        3.9584        .12496E-05   -.40843E-03
   2  norm          38.435        21.584       -.45849E-05    .94874E-05
   3  Prefactor     .10000E-03    3.2908        .24189E-06** at limit **
   4  Prefactor     10.510        3.6482        .15150E-06   -.37655E-04
   5  norm          .10000E-03    2.8298       -.10474E-08** at limit **
   6  Prefactor     .10000E-03    .57049        .25067E-06** at limit **
   7  norm          .10000E-03    .23776       -.60869E-07** at limit **
   8  Prefactor     .10000E-03    33.035       -.46270E-06** at limit **
   9  Prefactor     88.232        44.103       -.13656E-04    .13590E-04
  10  Prefactor     .10000E-03    3.9150       -.14348E-07** at limit **
  11  Prefactor     12.121        103.25       -.41660E-04   -.20455E-04
  12  Prefactor     .10000E-03    1.9603        .16069E-06** at limit **
  13  Prefactor     .10000E-03    7.9567        .31572E-05** at limit **
  14  Prefactor     .10000E-03    4.0420        .79422E-07** at limit **
  15  Prefactor     .10000E-03    8.7268        .68873E-07** at limit **
  16  norm          .10000E-03    .15068       -.13488E-07** at limit **
  17  Prefactor     .10000E-03    14.267        .57218E-07** at limit **
  18  Prefactor     .10000E-03    4.9226        .17928E-05** at limit **
  19  norm          .10000E-03    21.656        .24926E-04** at limit **
  20  Prefactor     .10000E-03    6.7184       -.14960E-06** at limit **
  21  Prefactor     .10000E-03    21.519       -.25439E-04** at limit **
  22  Prefactor     11.759        15.327        .13950E-04    .66447E-05
  23  Prefactor     .10000E-03    2.2563        .10321E-06** at limit **
  24  norm          .10000E-03    7.9070       -.34758E-05** at limit **
  25  norm          1.3109        3.4286       -.13756E-05   -.12587E-02
  26  Prefactor     .10000E-03    4.8668       -.21418E-05** at limit **
  27  norm          49.887        12.228        .29226E-06   -.19834E-04
  28  Normalizat    1.5078        .20610        .37837E-05   -.28011E-03
  29  Prefactor     .86748        .10408       -.44269E-07   -.47136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27789
  norm       = 38.4353
  Prefactor  = 0.0001
  Prefactor  = 10.5098
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.2322
  Prefactor  = 0.0001
  Prefactor  = 12.1213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7587
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.3109
  Prefactor  = 0.0001
  norm       = 49.8872
  Normalizat = 1.50785
  Prefactor  = 0.867484
 **********
 **   18 **HESSE 
 **********

 FCN=   7832.113     FROM HESSE     STATUS=OK           539 CALLS     4239 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2779        3.9341        .22572E-03   -1.5406    
   2  norm          38.435        21.589        .64680E-04   -1.4467    
   3  Prefactor     .10000E-03    3.3184        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.510        3.6556        .94836E-04   -1.5059    
   5  norm          .10000E-03    2.9099        .29068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .57258        .65262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .24801        .84234E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     88.232        44.075        .42775E-04   -1.3827    
  10  Prefactor     .10000E-03    3.9986        .17097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.121        103.81        .11411E-03   -1.5012    
  12  Prefactor     .10000E-03    1.9631        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0506        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .24405        .66583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    21.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.759        15.314        .11686E-03   -1.5022    
  23  Prefactor     .10000E-03    2.2672        .12981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.0150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3109        3.4308        .25443E-03   -1.5479    
  26  Prefactor     .10000E-03    4.9276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          49.887        12.254        .56776E-04   -1.4294    
  28  Normalizat    1.5078        .23230        .31131E-03   -.77558    
  29  Prefactor     .86748        .11722        .20022E-03   -.97287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95758e-09
Minuit parameter uncertainties:
  1  3.93452
  2  21.5935
  3  3.89624e-07
  4  3.65564
  5  2.52996e-06
  6  4.09127e-06
  7  1.34954e-06
  8  0.000182732
  9  44.0911
  10  1.51203e-05
  11  71.1117
  12  5.41492e-06
  13  9.96609e-06
  14  8.42467e-06
  15  1.90041e-05
  16  2.74776e-06
  17  4.68397e-06
  18  5.50754e-06
  19  0.000203363
  20  9.17571e-06
  21  3.95908e-05
  22  15.3192
  23  4.50364e-06
  24  1.31278e-05
  25  3.43135
  26  5.11473e-06
  27  12.2547
  28  0.232467
  29  0.117255
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.212e+01  7.111e+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:  8.675e-01  1.173e-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:  1.508e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/394792/likelihoodResults_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.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) = 7831.88388257
delta logL = 0.228950738938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7831.88342344
delta logL = 0.229409869681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3211       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1711       1.0000          .0000       10.000    
     3 'Normalizat'    1.4749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87347       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=   7831.883     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      307 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3217        758.29        .14824E-03    .25301E-03
   2  Index         3.1713        6.1112        .77420E-02    .13714E-03
   3  Normalizat    1.4746        .21888        .31421E-03    .16423E-03
   4  Prefactor     .87362        .10863        .19957E-03    .21505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32175
  Index      = 3.17126
  Normalizat = 1.47462
  Prefactor  = 0.873616
 **********
 **   18 **HESSE 
 **********

 FCN=   7831.883     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3217        32.613        .59294E-05   -1.5167    
   2  Index         3.1713        1.6975        .30968E-03   -.37444    
   3  Normalizat    1.4746        .23084        .62843E-04   -.78494    
   4  Prefactor     .87362        .11439        .39915E-04   -.97069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62403e-10
Minuit parameter uncertainties:
  1  30.9331
  2  1.73755
  3  0.231001
  4  0.114425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/394792': 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) = 7831.88342255
delta logL = 0.229410754923

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  7.322e+00  3.093e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.171e+00  1.738e+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:  8.736e-01  1.144e-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:  1.475e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 36.631 9.635

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/394792/cmap_HighResolution_302313601_302572801_4FGL_J0226.5+0938_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-08-15 22:21:08.396242', job_id='394792', GAL2='0.87', fit_tolerance='1e-08', EG2='1.47', EG='1.51', time_epoch_completed='1629091268.4', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.29e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='243' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:21:08 PDT 2021


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

Job <4FGL_J0226.5+0938_daily_bin243> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 22:05:44 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:07:19 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:07:19 2021
Terminated at Sun Aug 15 22:21:09 2021
Results reported at Sun Aug 15 22:21:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin243 36.6313 9.6351 302313601 302572801 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 :                                   779.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            925 sec.

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

