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


Performing analysis on: 4FGL_J0237.8+2848_daily_bin1565
RA = 39.4737, Dec = 28.8044
tmin = 644976001, tmax = 645235201
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='562036', job_status='RUN', time_executed='2021-08-16 07:31:35.235525', time_epoch_executed='1629124295.24' WHERE source_name='4FGL J0237.8+2848' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/562036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/562036/ft1_4FGL_J0237.8+2848_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/562036/ft1_4FGL_J0237.8+2848_daily_bin1565.fits outfile=/scratch/kocevski/562036/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1565.fits ra=39.4737 dec=28.8044 rad=12.0 tmin=644976001.0 tmax=645235201.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.58
user 2.79
sys 1.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.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/562036/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.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 2.04
user 0.35
sys 1.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/562036/ltcube_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.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/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits
.....................!
real 18.06
user 15.94
sys 2.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/562036/ltcube_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.fits outfile=/scratch/kocevski/562036/expmap_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.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/562036/ltcube_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.fits
.....................!
real 194.55
user 186.64
sys 6.95

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

Setting source of interest to:
4FGL J0237.8+2848 @ 39.4737 28.8044

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits scfile=/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits outfile=/scratch/kocevski/562036/cmap_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.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=39.4737 yref=28.8044 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 2.04
user 0.38
sys 1.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits scfile=/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits outfile=/scratch/kocevski/562036/cmap_HighResolution_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.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=39.4737 yref=28.8044 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 2.04
user 0.39
sys 1.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/562036/Model_4FGL_J0237.8+2848_daily_bin1565.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/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits.....................!
real 107.84
user 104.09
sys 3.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits', '/scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits', expMap='/scratch/kocevski/562036/expmap_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.fits', expCube='/scratch/kocevski/562036/ltcube_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/562036/Model_4FGL_J0237.8+2848_daily_bin1565.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0237.8+2848'

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  8.849e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.209e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  8.714e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  4.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/562036/ft1_filtered_4FGL_J0237.8+2848_daily_bin1565.fits
Spacecraft file(s): /scratch/kocevski/562036/ft2_4FGL_J0237.8+2848_daily_bin1565.fits
Exposure map: /scratch/kocevski/562036/expmap_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.fits
Exposure cube: /scratch/kocevski/562036/ltcube_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/562036/Model_4FGL_J0237.8+2848_daily_bin1565.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) = 7821.58461265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33094E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60606E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8629       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.8103       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9719       1.0000         .10000E-03   10000.    
    10 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9465       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.727       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .65235       1.0000         .10000E-03   10000.    
    22 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41882E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.375       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8862       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83492       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7821.577     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3341 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0053        1.0687       -.25182E-08   -.16611E-03
   2  Prefactor     .10000E-03    7.7505        .28330E-06** at limit **
   3  norm          .10165E-03    2.6450        .11777E-05** at limit **
   4  Prefactor     .10000E-03    571.00        .28083E-05** at limit **
   5  Prefactor     9.8856        7.8210       -.15329E-05   -.30812E-03
   6  Prefactor     .10000E-03    3.9150       -.13151E-06** at limit **
   7  norm          2.8117        2.8364        .48171E-09   -.69866E-05
   8  Prefactor     .10000E-03    9.3889        .38559E-06** at limit **
   9  norm          1.9722        .74259       -.21903E-08   -.41944E-04
  10  norm          .10000E-03    39.157       -.15863E-06** at limit **
  11  Prefactor     .10000E-03    22.240       -.35645E-06** at limit **
  12  Prefactor     1.9512        5.8951        .13198E-05    .54273E-04
  13  Prefactor     61.756        70.667        .28269E-06   -.17125E-04
  14  norm          9.1792        9.1201       -.41757E-06    .27684E-05
  15  Prefactor     .10000E-03    10.299        .22967E-07** at limit **
  16  norm          8.1023        2.8521        .28712E-07   -.84224E-04
  17  Prefactor     24.494        29.751        .11426E-06   -.46726E-05
  18  Prefactor     .10000E-03    19.150        .14800E-06** at limit **
  19  Prefactor     .10000E-03    18.171       -.51997E-07** at limit **
  20  Prefactor     .10000E-03    32.882        .19433E-06** at limit **
  21  norm          .66670        8.0576        .31778E-06   -.59841E-04
  22  norm          .10000E-03    9.5511        .27864E-07** at limit **
  23  Prefactor     .10000E-03    128.27        .13879E-05** at limit **
  24  Prefactor     27.372        18.596        .15847E-06   -.17518E-04
  25  Prefactor     1.8863        3.2305        .61939E-07    .17826E-05
  26  Normalizat    .83454        .25892       -.12981E-05   -.11954E-03
  27  Prefactor     1.1173        .10679        .29916E-06   -.32485E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00529
  Prefactor  = 0.0001
  norm       = 0.000101646
  Prefactor  = 0.000100001
  Prefactor  = 9.88555
  Prefactor  = 0.0001
  norm       = 2.81166
  Prefactor  = 0.0001
  norm       = 1.97217
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95116
  Prefactor  = 61.7559
  norm       = 9.17919
  Prefactor  = 0.0001
  norm       = 8.10226
  Prefactor  = 24.4943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.666701
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.3724
  Prefactor  = 1.88634
  Normalizat = 0.834544
  Prefactor  = 1.11727
 **********
 **   18 **HESSE 
 **********

 FCN=   7821.577     FROM HESSE     STATUS=OK           496 CALLS     3837 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0053        1.0697        .29240E-04   -1.5425    
   2  Prefactor     .10000E-03    7.7668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10165E-03    6.4650        .40864E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    571.71        .18925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8856        8.7359        .12759E-03   -1.5079    
   6  Prefactor     .10000E-03    3.9358        .17076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.8117        2.8469        .13587E-03   -1.5373    
   8  Prefactor     .10000E-03    9.6406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9722        .74509        .41961E-04   -1.5427    
  10  norm          .10000E-03    39.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9512        5.9351        .14875E-02   -1.5429    
  13  Prefactor     61.756        70.714        .51072E-04   -1.4135    
  14  norm          9.1792        9.1608        .13225E-03   -1.5102    
  15  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1023        2.8524        .83721E-04   -1.5139    
  17  Prefactor     24.494        29.741        .80932E-04   -1.4718    
  18  Prefactor     .10000E-03    20.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .66670        47.028        .48186E-02   -1.5545    
  22  norm          .10000E-03    9.5559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    128.10        .21242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.372        18.602        .76569E-04   -1.4661    
  25  Prefactor     1.8863        3.2235        .19712E-03   -1.5433    
  26  Normalizat    .83454        .28037        .44884E-03   -.98800    
  27  Prefactor     1.1173        .11711        .17461E-03   -.88917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69657e-08
Minuit parameter uncertainties:
  1  1.06975
  2  4.33913e-06
  3  0.0065249
  4  0.00162057
  5  8.73702
  6  7.08082e-06
  7  2.84703
  8  8.03843e-06
  9  0.745098
  10  2.20044e-05
  11  1.06368e-05
  12  5.93691
  13  70.8105
  14  9.16215
  15  7.81155e-07
  16  2.85243
  17  29.7592
  18  1.06284e-05
  19  7.49154e-07
  20  2.83531e-05
  21  11.2072
  22  1.83207e-07
  23  0.000565924
  24  18.6058
  25  3.22383
  26  0.280856
  27  0.117141
Done.

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

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  8.102e+00  2.852e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.209e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  8.714e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  4.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.117e+00  1.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.345e-01  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.41
Ra Dec: 39.474 28.804
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.81e-07 +/- 6.36e-08
Energy Flux (Fixed Index): 6.57e-05 +/- 2.31e-05

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) = 7821.56003919
delta logL = 0.0170201831952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7821.55926898
delta logL = 0.0177903928143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1296       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2816       1.0000          .0000       5.0000    
     3 'Normalizat'    .82328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1198       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7821.559     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1296        5.3488        .35154E-02   -.47490E-03
   2  alpha         2.2816        .66254        .29291        .31923E-04
   3  Normalizat    .82328        .24257        .10188        .42205E-04
   4  Prefactor     1.1198        .10637        .36880E-01   -.90650E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.12959
  alpha      = 2.28159
  Normalizat = 0.823282
  Prefactor  = 1.11977
 **********
 **   18 **HESSE 
 **********

 FCN=   7821.559     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1296        2.8005        .82296E-04   -1.5138    
   2  alpha         2.2816        .38660        .11655E-01   -.87477E-01
   3  Normalizat    .82328        .26036        .45154E-03   -.99211    
   4  Prefactor     1.1198        .11332        .17442E-03   -.88837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00366e-11
Minuit parameter uncertainties:
  1  2.80057
  2  0.38817
  3  0.26076
  4  0.11334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/562036': 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) = 7821.55926897
delta logL = 0.0177903954691

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  8.130e+00  2.801e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.282e+00  3.882e-01  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  8.714e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  4.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.120e+00  1.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  8.233e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.36
Ra Dec: 39.474 28.804
Photon Index (Free Index): 2.28 +/- 0.39
Photon Flux (Free Index): 1.91e-07 +/- 8.42e-08
Energy Flux (Free Index): 6.41e-05 +/- 2.38e-05

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/562036/cmap_HighResolution_644976001_645235201_4FGL_J0237.8+2848_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-07', energy_flux2='6.41e-05', photon_flux_error='6.36e-08', dlogl='1.78e-02', energy_flux='6.57e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-08-16 07:45:15.393340', photon_index_error2='0.39', photon_index2='2.28', ts='21.41', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.83', time_epoch_completed='1629125115.39', return_code='0', job_id='562036', GAL2='1.12', EG2='0.82', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='8.42e-08', ts2='21.36', photon_index='2.21' WHERE bin_id='1565' AND source_name='4FGL J0237.8+2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 07:45:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 562036: <4FGL_J0237.8+2848_daily_bin1565> in cluster <slac> Done

Job <4FGL_J0237.8+2848_daily_bin1565> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 07:30:27 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 07:30:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 07:30:56 2021
Terminated at Mon Aug 16 07:45:16 2021
Results reported at Mon Aug 16 07:45:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0237.8+2848_daily_bin1565 39.4737 28.8044 644976001 645235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0237.8+2848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            889 sec.

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

