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


Performing analysis on: 4FGL_J0226.5+0938_daily_bin613
RA = 36.6313, Dec = 9.6351
tmin = 398217601, tmax = 398476801
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='396276', job_status='RUN', time_executed='2021-08-15 22:15:34.137355', time_epoch_executed='1629090934.14' WHERE source_name='4FGL J0226.5+0938' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396276

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396276/ft1_4FGL_J0226.5+0938_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396276/ft2_4FGL_J0226.5+0938_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396276/ft1_4FGL_J0226.5+0938_daily_bin613.fits outfile=/scratch/kocevski/396276/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin613.fits ra=36.6313 dec=9.6351 rad=12.0 tmin=398217601.0 tmax=398476801.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 5.87
user 5.13
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396276/ft2_4FGL_J0226.5+0938_daily_bin613.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/396276/ft1_filteredMKT_4FGL_J0226.5+0938_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/396276/ft1_filtered_4FGL_J0226.5+0938_daily_bin613.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.94
user 0.30
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396276/ft1_filtered_4FGL_J0226.5+0938_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/396276/ft2_4FGL_J0226.5+0938_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/396276/ltcube_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.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/396276/ft2_4FGL_J0226.5+0938_daily_bin613.fits
.....................!
real 11.56
user 10.70
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396276/ft1_filtered_4FGL_J0226.5+0938_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/396276/ft2_4FGL_J0226.5+0938_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/396276/ltcube_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.fits outfile=/scratch/kocevski/396276/expmap_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.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/396276/ltcube_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.fits
.....................!
real 157.15
user 152.14
sys 4.27

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/396276/ft1_filtered_4FGL_J0226.5+0938_daily_bin613.fits scfile=/scratch/kocevski/396276/ft2_4FGL_J0226.5+0938_daily_bin613.fits outfile=/scratch/kocevski/396276/cmap_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.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.94
user 0.34
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396276/ft1_filtered_4FGL_J0226.5+0938_daily_bin613.fits scfile=/scratch/kocevski/396276/ft2_4FGL_J0226.5+0938_daily_bin613.fits outfile=/scratch/kocevski/396276/cmap_HighResolution_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.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.97
user 0.34
sys 0.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5782       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22572E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7800       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3764       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7702       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.1630       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8947       1.0000         .10000E-03   10000.    
    27 'norm      '    2.7812       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3002       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86161       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=   5339.593     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3214 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9578       -.17634E-06** at limit **
   2  norm          19.507        17.249       -.15630E-05   -.44052E-04
   3  Prefactor     1.2292        7.5834        .36914E-06   -.14604E-03
   4  Prefactor     .10000E-03    1.6109       -.71998E-08** at limit **
   5  norm          10.232        8.2280       -.58605E-06   -.42211E-04
   6  Prefactor     3.5779        4.8684       -.31726E-05   -.36962E-03
   7  norm          1.6854        1.3200       -.37594E-07    .65490E-04
   8  Prefactor     .10000E-03    18.273       -.23111E-06** at limit **
   9  Prefactor     .10000E-03    278.51       -.36226E-05** at limit **
  10  Prefactor     .10000E-03    9.4977        .53062E-06** at limit **
  11  Prefactor     9.5011        105.25       -.91409E-05   -.94350E-05
  12  Prefactor     .10000E-03    5.0676       -.24273E-06** at limit **
  13  Prefactor     5.7805        13.971       -.12369E-05   -.20428E-04
  14  Prefactor     19.052        16.444       -.85117E-06   -.13105E-04
  15  Prefactor     6.3783        11.127        .17286E-05    .26305E-03
  16  norm          .10000E-03    .42547       -.22965E-06** at limit **
  17  Prefactor     .10000E-03    18.267       -.27305E-07** at limit **
  18  Prefactor     .10000E-03    24.161        .66079E-06** at limit **
  19  norm          20.326        14.298        .32026E-06    .34280E-04
  20  Prefactor     .10000E-03    6.0970        .31337E-06** at limit **
  21  Prefactor     11.166        35.033        .29537E-06    .16970E-04
  22  Prefactor     .10000E-03    8.0510       -.55698E-06** at limit **
  23  Prefactor     5.7709        6.3984        .17211E-06    .45310E-05
  24  norm          .10000E-03    4.3843        .31689E-06** at limit **
  25  norm          7.1636        5.5520        .44563E-06    .37949E-04
  26  Prefactor     4.8949        5.3599        .85062E-07    .22927E-04
  27  norm          2.7817        3.4098        .10177E-05   -.17830E-02
  28  Normalizat    1.3001        .24437        .25412E-05    .30504E-04
  29  Prefactor     .86161        .11637       -.44002E-06    .24843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.5068
  Prefactor  = 1.2292
  Prefactor  = 0.0001
  norm       = 10.2316
  Prefactor  = 3.57791
  norm       = 1.6854
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.50105
  Prefactor  = 0.0001
  Prefactor  = 5.78046
  Prefactor  = 19.0524
  Prefactor  = 6.37829
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3263
  Prefactor  = 0.0001
  Prefactor  = 11.166
  Prefactor  = 0.0001
  Prefactor  = 5.77085
  norm       = 0.0001
  norm       = 7.16359
  Prefactor  = 4.89489
  norm       = 2.78169
  Normalizat = 1.30006
  Prefactor  = 0.861609
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.593     FROM HESSE     STATUS=OK           555 CALLS     3769 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9871        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.507        17.243        .90687E-04   -1.4824    
   3  Prefactor     1.2292        7.6511        .38856E-03   -1.5486    
   4  Prefactor     .10000E-03    1.6289        .90504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.232        8.1666        .12527E-03   -1.5068    
   6  Prefactor     3.5779        4.8521        .16383E-03   -1.5330    
   7  norm          1.6854        1.3206        .70156E-04   -1.5448    
   8  Prefactor     .10000E-03    18.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    289.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5011        104.70        .12997E-03   -1.5091    
  12  Prefactor     .10000E-03    5.0881        .16059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7805        13.955        .16706E-03   -1.5227    
  14  Prefactor     19.052        16.432        .91762E-04   -1.4835    
  15  Prefactor     6.3783        10.370        .15895E-03   -1.5203    
  16  norm          .10000E-03    1.2174        .85126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.326        14.283        .88841E-04   -1.4806    
  20  Prefactor     .10000E-03    6.1016        .17618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.166        34.987        .11988E-03   -1.5040    
  22  Prefactor     .10000E-03    8.0554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.7709        6.3963        .16720E-03   -1.5227    
  24  norm          .10000E-03    4.3855        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.1636        5.5520        .14463E-03   -1.5173    
  26  Prefactor     4.8949        5.3604        .17253E-03   -1.5265    
  27  norm          2.7817        7.2457        .12200E-02   -1.5374    
  28  Normalizat    1.3001        .27234        .31486E-03   -.83565    
  29  Prefactor     .86161        .13213        .18840E-03   -.97496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77492e-09
Minuit parameter uncertainties:
  1  4.36499e-06
  2  17.2469
  3  6.13434
  4  1.78408e-06
  5  8.16754
  6  4.85259
  7  1.32061
  8  0.000124087
  9  0.00154312
  10  2.56291e-05
  11  63.2214
  12  3.37835e-06
  13  13.9627
  14  16.4361
  15  10.3733
  16  3.41363e-05
  17  1.05878e-05
  18  1.86185e-06
  19  14.2858
  20  3.60244e-06
  21  35.0514
  22  1.2228e-05
  23  6.39707
  24  3.98424e-07
  25  5.5524
  26  5.36091
  27  7.24794
  28  0.272638
  29  0.132179
Done.

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

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  9.501e+00  6.322e+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.616e-01  1.322e-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.300e+00  2.726e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/396276/likelihoodResults_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.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) = 5339.59324995
delta logL = 0.000132544633743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5339.59322714
delta logL = 0.000155348348926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5010       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1847       1.0000          .0000       10.000    
     3 'Normalizat'    1.2998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86162       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=   5339.593     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      218 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2078        681.95        .32503E-02    .74950E-04
   2  Index         2.1938        .75238        .50000       -.27800E-05
   3  Normalizat    1.2998        .18059E-01    .71165E-01    .45276E-05
   4  Prefactor     .86164        .90341E-02    .44514E-01   -.15690E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.20776
  Index      = 2.19382
  Normalizat = 1.29983
  Prefactor  = 0.861645
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.593     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2078        110.83        .65006E-03   -1.5101    
   2  Index         2.1938        2.2586        .48174E-02   -.59588    
   3  Normalizat    1.2998        .25246        .31488E-03   -.83571    
   4  Prefactor     .86164        .12662        .18839E-03   -.97495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93656e-12
Minuit parameter uncertainties:
  1  64.0391
  2  2.38917
  3  0.252703
  4  0.126663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396276': 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) = 5339.59321296
delta logL = 0.000169532277141

Extracting fit parameters...

4FGL J0226.5+0938
   Spectrum: PowerLaw
257    Prefactor:  9.208e+00  6.404e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.194e+00  2.389e+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.616e-01  1.267e-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.300e+00  2.527e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/396276/cmap_HighResolution_398217601_398476801_4FGL_J0226.5+0938_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-08-15 22:25:39.454863', job_id='396276', GAL2='0.86', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1629091539.45', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.70e-04', ts2='0.03', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='613' AND source_name='4FGL J0226.5+0938' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 22:25:39 PDT 2021


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

Job <4FGL_J0226.5+0938_daily_bin613> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 22:10:27 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 22:12:41 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:12:41 2021
Terminated at Sun Aug 15 22:25:40 2021
Results reported at Sun Aug 15 22:25:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0226.5+0938_daily_bin613 36.6313 9.6351 398217601 398476801 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            913 sec.

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

