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


Performing analysis on: 4FGL_J0237.8+2848_daily_bin917
RA = 39.4737, Dec = 28.8044
tmin = 477014401, tmax = 477273601
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='558034', job_status='RUN', time_executed='2021-08-16 07:16:06.256294', time_epoch_executed='1629123366.26' WHERE source_name='4FGL J0237.8+2848' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558034

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558034/ft1_4FGL_J0237.8+2848_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558034/ft1_4FGL_J0237.8+2848_daily_bin917.fits outfile=/scratch/kocevski/558034/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin917.fits ra=39.4737 dec=28.8044 rad=12.0 tmin=477014401.0 tmax=477273601.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 3.40
sys 1.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.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/558034/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin917.fits evtable="EVENTS" outfile="/scratch/kocevski/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.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.33
user 0.32
sys 0.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/558034/ltcube_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.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/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits
.....................!
real 14.31
user 12.84
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/558034/ltcube_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.fits outfile=/scratch/kocevski/558034/expmap_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.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/558034/ltcube_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.fits
.....................!
real 192.63
user 185.85
sys 5.96

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/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.fits scfile=/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits outfile=/scratch/kocevski/558034/cmap_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.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 1.44
user 0.38
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.fits scfile=/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits outfile=/scratch/kocevski/558034/cmap_HighResolution_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.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 1.46
user 0.38
sys 1.03

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.fits', '/scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits', expMap='/scratch/kocevski/558034/expmap_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.fits', expCube='/scratch/kocevski/558034/ltcube_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/558034/Model_4FGL_J0237.8+2848_daily_bin917.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/558034/ft1_filtered_4FGL_J0237.8+2848_daily_bin917.fits
Spacecraft file(s): /scratch/kocevski/558034/ft2_4FGL_J0237.8+2848_daily_bin917.fits
Exposure map: /scratch/kocevski/558034/expmap_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.fits
Exposure cube: /scratch/kocevski/558034/ltcube_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/558034/Model_4FGL_J0237.8+2848_daily_bin917.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) = 9550.14533428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3657       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28932E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .74508       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1194       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.741       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7535       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8395       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.574       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .53423E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3718       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .74499       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3438       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80634       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=   9550.144     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3266 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87642        1.0561        .15540E-06    .20638E-03
   2  Prefactor     .10000E-03    5.2575       -.90247E-07** at limit **
   3  norm          .10000E-03    1.4900       -.33728E-06** at limit **
   4  Prefactor     .10000E-03    51.058       -.98761E-06** at limit **
   5  Prefactor     6.4707        6.7086        .39162E-05    .31580E-03
   6  Prefactor     .10000E-03    1.5776        .86624E-07** at limit **
   7  norm          2.3657        1.9722        .15660E-07    .24810E-03
   8  Prefactor     .10003E-03    4.7358       -.30424E-05** at limit **
   9  norm          .74498        .45509       -.55321E-08    .12715E-02
  10  norm          .10000E-03    36.539        .20965E-06** at limit **
  11  Prefactor     3.0974        32.167        .44855E-05    .24747E-03
  12  Prefactor     .10000E-03    1.3704       -.22297E-07** at limit **
  13  Prefactor     18.720        39.948        .17784E-05    .13241E-03
  14  norm          1.7537        3.8508        .78234E-06    .27319E-04
  15  Prefactor     .10000E-03    11.101       -.80427E-07** at limit **
  16  norm          3.8396        1.7356        .69432E-07    .25430E-03
  17  Prefactor     .10000E-03    7.6344        .16585E-06** at limit **
  18  Prefactor     .10000E-03    5.5163        .14351E-06** at limit **
  19  Prefactor     .10000E-03    10.258        .76303E-07** at limit **
  20  Prefactor     .10000E-03    52.243        .68603E-06** at limit **
  21  norm          .10000E-03    3.4829       -.95232E-09** at limit **
  22  norm          18.575        18.097        .13906E-06   -.17698E-04
  23  Prefactor     .10018E-03    713.58       -.10280E-04** at limit **
  24  Prefactor     2.3711        3.1232        .25346E-07    .21397E-04
  25  Prefactor     .74496        1.2976        .52000E-06    .11613E-03
  26  Normalizat    1.3435        .19231       -.17641E-05    .39613E-03
  27  Prefactor     .80639        .73869E-01    .33667E-07    .28714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.876421
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.47066
  Prefactor  = 0.0001
  norm       = 2.36573
  Prefactor  = 0.000100035
  norm       = 0.744984
  norm       = 0.0001
  Prefactor  = 3.09741
  Prefactor  = 0.0001
  Prefactor  = 18.7201
  norm       = 1.75373
  Prefactor  = 0.0001
  norm       = 3.83961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 18.5749
  Prefactor  = 0.00010018
  Prefactor  = 2.37111
  Prefactor  = 0.744955
  Normalizat = 1.3435
  Prefactor  = 0.806393
 **********
 **   18 **HESSE 
 **********

 FCN=   9550.144     FROM HESSE     STATUS=OK           484 CALLS     3750 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87642        .95154        .10450E-02   -1.5521    
   2  Prefactor     .10000E-03    5.2600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5072        .11683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4707        6.8764        .78880E-03   -1.5199    
   6  Prefactor     .10000E-03    1.5817        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3657        1.9669        .11825E-03   -1.5400    
   8  Prefactor     .10003E-03    11.314        .37738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74498        .44630        .48070E-04   -1.5535    
  10  norm          .10000E-03    36.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0974        33.340        .22956E-03   -1.5356    
  12  Prefactor     .10000E-03    1.3819        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.720        40.025        .92518E-04   -1.4842    
  14  norm          1.7537        3.8158        .27683E-03   -1.5443    
  15  Prefactor     .10000E-03    11.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8396        1.7343        .83014E-04   -1.5316    
  17  Prefactor     .10000E-03    7.6544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4952        .17811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.575        18.086        .92934E-04   -1.4846    
  23  Prefactor     .10018E-03    729.11        .19110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3711        3.1142        .19342E-03   -1.5400    
  25  Prefactor     .74496        1.2782        .14007E-03   -1.5535    
  26  Normalizat    1.3435        .21236        .32644E-03   -.82277    
  27  Prefactor     .80639        .83468E-01    .16712E-03   -.99493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51804e-09
Minuit parameter uncertainties:
  1  0.951558
  2  7.08269e-06
  3  1.90674e-05
  4  0.000711982
  5  6.8772
  6  2.73139e-07
  7  1.96691
  8  0.00125104
  9  0.446302
  10  0.000117382
  11  20.3383
  12  1.38553e-06
  13  40.0826
  14  3.81635
  15  1.67782e-05
  16  1.73428
  17  1.15968e-05
  18  1.22755e-05
  19  1.91171e-05
  20  0.000535579
  21  1.35431e-06
  22  18.0917
  23  0.0232267
  24  3.11446
  25  1.27821
  26  0.212496
  27  0.083481
Done.

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

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  3.840e+00  1.734e+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:  8.064e-01  8.348e-02  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:  1.344e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.76
Ra Dec: 39.474 28.804
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.41e-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) = 9550.13031059
delta logL = 0.0134443773877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9550.12983661
delta logL = 0.0139183604515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8441       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1315       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80504       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=   9550.130     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      201 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8506        6.2755        .51459E-02    .76662E-03
   2  alpha         2.1316        1.2909        .39113       -.35273E-04
   3  Normalizat    1.3490        .18584        .73646E-01    .38691E-03
   4  Prefactor     .80502        .77119E-01    .43783E-01    .81976E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85059
  alpha      = 2.13155
  Normalizat = 1.34901
  Prefactor  = 0.805022
 **********
 **   18 **HESSE 
 **********

 FCN=   9550.130     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8506        1.7489        .83835E-04   -1.5315    
   2  alpha         2.1316        .45310        .14341E-01   -.14792    
   3  Normalizat    1.3490        .20336        .32589E-03   -.82115    
   4  Prefactor     .80502        .82465E-01    .16725E-03   -.99543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34716e-10
Minuit parameter uncertainties:
  1  1.74889
  2  0.455675
  3  0.20348
  4  0.0824775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558034': 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) = 9550.12982955
delta logL = 0.0139254176647

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  3.851e+00  1.749e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.132e+00  4.557e-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:  8.050e-01  8.248e-02  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:  1.349e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.77
Ra Dec: 39.474 28.804
Photon Index (Free Index): 2.13 +/- 0.46
Photon Flux (Free Index): 8.14e-08 +/- 4.42e-08
Energy Flux (Free Index): 3.26e-05 +/- 1.77e-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/558034/cmap_HighResolution_477014401_477273601_4FGL_J0237.8+2848_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='3.26e-05', photon_flux_error='3.86e-08', dlogl='1.39e-02', energy_flux='3.12e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-08-16 07:31:29.820506', photon_index_error2='0.46', photon_index2='2.13', ts='9.76', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.34', time_epoch_completed='1629124289.82', return_code='0', job_id='558034', GAL2='0.81', EG2='1.35', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.42e-08', ts2='9.77', photon_index='2.21' WHERE bin_id='917' AND source_name='4FGL J0237.8+2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 07:31:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 558034: <4FGL_J0237.8+2848_daily_bin917> in cluster <slac> Done

Job <4FGL_J0237.8+2848_daily_bin917> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 07:15:30 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 07:15:36 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:15:36 2021
Terminated at Mon Aug 16 07:31:31 2021
Results reported at Mon Aug 16 07:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0237.8+2848_daily_bin917 39.4737 28.8044 477014401 477273601 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 :                                   931.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            961 sec.

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

