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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin1265
RA = 36.6313, Dec = 9.6351
tmin = 567216001, tmax = 567475201
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='399316', job_status='RUN', time_executed='2021-08-15 22:22:34.291979', time_epoch_executed='1629091354.29' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/399316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/399316/ft1_4FGL_J0226.5+0938_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/399316/ft1_4FGL_J0226.5+0938_daily_bin1265.fits outfile=/scratch/kocevski/399316/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1265.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=567216001.0 tmax=567475201.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 6.27
user 2.65
sys 3.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.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/399316/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/399316/ft1_filtered_4FGL_J0226.5+0938_daily_bin1265.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 3.88
user 0.34
sys 3.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/399316/ft1_filtered_4FGL_J0226.5+0938_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/399316/ltcube_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.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/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.fits
.....................!
real 18.90
user 14.72
sys 4.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/399316/ft1_filtered_4FGL_J0226.5+0938_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/399316/ltcube_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.fits outfile=/scratch/kocevski/399316/expmap_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.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/399316/ltcube_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.fits
.....................!
real 196.01
user 185.52
sys 9.93

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/399316/ft1_filtered_4FGL_J0226.5+0938_daily_bin1265.fits scfile=/scratch/kocevski/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.fits outfile=/scratch/kocevski/399316/cmap_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.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 3.87
user 0.40
sys 3.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/399316/ft1_filtered_4FGL_J0226.5+0938_daily_bin1265.fits scfile=/scratch/kocevski/399316/ft2_4FGL_J0226.5+0938_daily_bin1265.fits outfile=/scratch/kocevski/399316/cmap_HighResolution_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.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 3.94
user 0.40
sys 3.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63062       1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8930       1.0000         .10000E-03   10000.    
     5 'norm      '    9.9804       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4559       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25383E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    28.587       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    89.210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8209       1.0000         .10000E-03   10000.    
    24 'norm      '    11.669       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9607       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    27 'norm      '    9.9386       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .79145       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0465       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=   5368.355     FROM MIGRAD    STATUS=CONVERGED   1287 CALLS     4783 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62968        6.6764        .18037E-02   -.10112E-02
   2  norm          .10000E-03    5.3842        .16600E-02** at limit **
   3  Prefactor     5.5461        7.0808        .17056E-03    .15131E-04
   4  Prefactor     1.8927        2.3446        .12050E-03    .65381E-04
   5  norm          9.9808        6.0185        .63419E-03    .10209E-03
   6  Prefactor     .10000E-03    1.3090        .81129E-03** at limit **
   7  norm          2.4557        1.2042        .26462E-03    .14354E-03
   8  Prefactor     .10000E-03    14.370        .18142E-02** at limit **
   9  Prefactor     .10000E-03    65.990        .18142E-02** at limit **
  10  Prefactor     1.2046        14.382        .41235E-03    .49572E-04
  11  Prefactor     .10000E-03    38.692        .18142E-02** at limit **
  12  Prefactor     .10000E-03    5.5817        .16870E-02** at limit **
  13  Prefactor     .10000E-03    9.0758        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.0769        .17614E-02** at limit **
  15  Prefactor     .10000E-03    4.1698        .14594E-02** at limit **
  16  norm          .10000E-03    .16112        .28470E-03** at limit **
  17  Prefactor     .10002E-03    72.417        .16859    ** at limit **
  18  Prefactor     .10000E-03    42.129        .18142E-02** at limit **
  19  norm          28.577        19.550        .74932E-04    .69640E-04
  20  Prefactor     .10000E-03    24.118        .18142E-02** at limit **
  21  Prefactor     89.215        72.994        .42541E-04    .14057E-04
  22  Prefactor     .10000E-03    17.276        .18142E-02** at limit **
  23  Prefactor     7.8212        9.1897        .71691E-03    .35744E-04
  24  norm          11.669        12.516        .11727E-03    .24139E-04
  25  norm          3.9604        8.6888        .10134E-02   -.11966E-03
  26  Prefactor     13.425        11.379        .10932E-03    .37438E-04
  27  norm          9.9415        19.374        .63553E-03    .98208E-05
  28  Normalizat    .79156        .24976        .36112E-03    .26234E-03
  29  Prefactor     1.0465        .14479        .17871E-03    .20076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.629682
  norm       = 0.0001
  Prefactor  = 5.54613
  Prefactor  = 1.89274
  norm       = 9.9808
  Prefactor  = 0.0001
  norm       = 2.45572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 28.5773
  Prefactor  = 0.0001
  Prefactor  = 89.2146
  Prefactor  = 0.0001
  Prefactor  = 7.82121
  norm       = 11.6695
  norm       = 3.96042
  Prefactor  = 13.4252
  norm       = 9.94153
  Normalizat = 0.791564
  Prefactor  = 1.04647
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.355     FROM HESSE     STATUS=OK           537 CALLS     5320 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62968        6.6682        .72149E-04   -1.5549    
   2  norm          .10000E-03    5.3843        .33201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5461        7.0802        .68223E-05   -1.5237    
   4  Prefactor     1.8927        2.3444        .48201E-05   -1.5433    
   5  norm          9.9808        6.0177        .25368E-04   -1.5076    
   6  Prefactor     .10000E-03    1.3092        .16226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4557        1.2041        .10585E-04   -1.5395    
   8  Prefactor     .10000E-03    14.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2046        14.368        .16494E-04   -1.5488    
  11  Prefactor     .10000E-03    38.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5823        .33741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0775        .35227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1701        .29188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .16112        .56941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    73.683        .16649       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.577        19.548        .29973E-05   -1.4638    
  20  Prefactor     .10000E-03    24.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     89.215        72.998        .85082E-05   -1.3816    
  22  Prefactor     .10000E-03    17.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.8212        9.1883        .28676E-04   -1.5149    
  24  norm          11.669        12.515        .46909E-05   -1.5025    
  25  norm          3.9604        8.6789        .40536E-04   -1.5310    
  26  Prefactor     13.425        11.379        .43728E-05   -1.4975    
  27  norm          9.9415        19.362        .25421E-04   -1.5077    
  28  Normalizat    .79156        .24973        .14445E-04   -1.0038    
  29  Prefactor     1.0465        .14481        .35742E-04   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60998e-09
Minuit parameter uncertainties:
  1  4.09848
  2  2.64235e-06
  3  7.08125
  4  2.34456
  5  6.01806
  6  8.07335e-07
  7  1.20413
  8  1.24462e-05
  9  1.27824e-05
  10  8.32247
  11  8.64701e-06
  12  1.20614e-05
  13  1.7347e-06
  14  1.12138e-05
  15  5.46687e-06
  16  4.49794e-08
  17  0.00227341
  18  0.000239388
  19  19.5519
  20  2.55125e-05
  21  73.0715
  22  8.47263e-06
  23  9.19
  24  12.5178
  25  8.68165
  26  11.3804
  27  19.3742
  28  0.250093
  29  0.144869
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  8.647e-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.046e+00  1.449e-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.916e-01  2.501e-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: 7.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/399316/likelihoodResults_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.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) = 5368.35552184
delta logL = -0.00012306003282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5368.35539904
delta logL = -2.60289198195e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4628       1.0000          .0000       10.000    
     3 'Normalizat'    .79156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0465       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.

 FCN=   5368.355     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.800        .90712E-02** at limit **
   2  Index         2.4470        8.6823        .50000        .41283E-05
   3  Normalizat    .79156        .51143E-02    .81556E-01    .22040E-04
   4  Prefactor     1.0465        .28878E-02    .40121E-01   -.27966E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44696
  Normalizat = 0.79156
  Prefactor  = 1.04647
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.355     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    166.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4470        8.5208        .50000       -.53589    
   3  Normalizat    .79156        .13571E-01    .36111E-03   -1.0038    
   4  Prefactor     1.0465        .76810E-02    .17871E-03   -.91196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.10028e-08
Minuit parameter uncertainties:
  1  0.000122031
  2  259.1
  3  0.0135713
  4  0.00768097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/399316': 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) = 5368.35539899
delta logL = -2.04536263482e-07

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.220e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.447e+00  2.591e+02  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.046e+00  7.681e-03  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.916e-01  1.357e-02  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/399316/cmap_HighResolution_567216001_567475201_4FGL_J0226.5+0938_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-08-15 22:36:30.458240', job_id='399316', GAL2='1.05', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1629092190.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1265' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 399316: <4FGL_J0226.5+0938_daily_bin1265> in cluster <slac> Done

Job <4FGL_J0226.5+0938_daily_bin1265> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 22:20:27 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:21:17 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:21:17 2021
Terminated at Sun Aug 15 22:36:31 2021
Results reported at Sun Aug 15 22:36:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin1265 36.6313 9.6351 567216001 567475201 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 :                                   886.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            964 sec.

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

