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


Performing analysis on: 4FGL_J0237.8+2848_daily_bin1618
RA = 39.4737, Dec = 28.8044
tmin = 658713601, tmax = 658972801
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='166852', job_status='RUN', time_executed='2021-12-07 13:42:37.168848', time_epoch_executed='1638913357.17' WHERE source_name='4FGL J0237.8+2848' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166852/ft1_4FGL_J0237.8+2848_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166852/ft1_4FGL_J0237.8+2848_daily_bin1618.fits outfile=/scratch/kocevski/166852/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1618.fits ra=39.4737 dec=28.8044 rad=12.0 tmin=658713601.0 tmax=658972801.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 3.05
user 2.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166852/ft1_filtered_4FGL_J0237.8+2848_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/166852/ltcube_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.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/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits
.....................!
real 17.93
user 17.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166852/ft1_filtered_4FGL_J0237.8+2848_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/166852/ltcube_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.fits outfile=/scratch/kocevski/166852/expmap_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.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/166852/ltcube_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.fits
.....................!
real 194.42
user 188.86
sys 5.19

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/166852/ft1_filtered_4FGL_J0237.8+2848_daily_bin1618.fits scfile=/scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits outfile=/scratch/kocevski/166852/cmap_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.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 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166852/ft1_filtered_4FGL_J0237.8+2848_daily_bin1618.fits scfile=/scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits outfile=/scratch/kocevski/166852/cmap_HighResolution_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.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 0.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166852/ft1_filtered_4FGL_J0237.8+2848_daily_bin1618.fits', '/scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits', expMap='/scratch/kocevski/166852/expmap_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.fits', expCube='/scratch/kocevski/166852/ltcube_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166852/Model_4FGL_J0237.8+2848_daily_bin1618.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/166852/ft1_filtered_4FGL_J0237.8+2848_daily_bin1618.fits
Spacecraft file(s): /scratch/kocevski/166852/ft2_4FGL_J0237.8+2848_daily_bin1618.fits
Exposure map: /scratch/kocevski/166852/expmap_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.fits
Exposure cube: /scratch/kocevski/166852/ltcube_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166852/Model_4FGL_J0237.8+2848_daily_bin1618.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 721.930325302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 720.535130883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30825E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .31925E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14649E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14922E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18578E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9939       1.0000         .10000E-03   10000.    
    14 'norm      '    17.706       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16234       1.0000         .10000E-03   10000.    
    16 'norm      '    30.265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0538       1.0000         .10000E-03   10000.    
    21 'norm      '    .82477E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1774       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6011       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4193       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    2.0308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   720.2603     FROM MIGRAD    STATUS=CONVERGED    347 CALLS      797 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0746       -.66202E-07** at limit **
   2  Prefactor     .10000E-03    45.323       -.20921E-05** at limit **
   3  norm          .10000E-03    36.197       -.89048E-05** at limit **
   4  Prefactor     .10000E-03    838.33       -.33770E-04** at limit **
   5  Prefactor     .10000E-03    13.310        .92552E-06** at limit **
   6  Prefactor     .10000E-03    17.574       -.27463E-06** at limit **
   7  norm          .10000E-03    6.4748        .89432E-07** at limit **
   8  Prefactor     .10000E-03    19.169       -.23858E-07** at limit **
   9  norm          .10000E-03    .98966       -.80248E-07** at limit **
  10  norm          .10001E-03    610.56        .69709E-05** at limit **
  11  Prefactor     .10000E-03    262.00        .16336E-05** at limit **
  12  Prefactor     .10003E-03    44.839       -.44327E-05** at limit **
  13  Prefactor     .10000E-03    481.76       -.12277E-04** at limit **
  14  norm          17.048        45.534       -.69848E-05    .22844E-03
  15  Prefactor     .10000E-03    90.695       -.53330E-05** at limit **
  16  norm          28.276        25.760        .11840E-05   -.34362E-04
  17  Prefactor     .10000E-03    371.75       -.22792E-05** at limit **
  18  Prefactor     .10000E-03    101.93        .17690E-05** at limit **
  19  Prefactor     .10005E-03    1740.7        .62098E-04** at limit **
  20  Prefactor     365.12        1411.0        .24759E-04    .16785E-04
  21  norm          .10000E-03    472.66       -.20686E-04** at limit **
  22  norm          .10079E-03    6410.6        .13106E-03** at limit **
  23  Prefactor     6.6702        1.0028         .0000         .0000    
  24  Prefactor     1.6011        1.0597         .0000         .0000    
  25  Prefactor    10000.0        9986.4        .64245E-03** at limit **
  26  Normalizat    .10000E-01    .66639       -.40571E-04** at limit **
  27  Prefactor     2.0133        .31562        .12293E-05    .97559E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.000100003
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  norm       = 17.0485
  Prefactor  = 0.0001
  norm       = 28.2762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 365.122
  norm       = 0.000100001
  norm       = 0.000100788
  Prefactor  = 6.67016
  Prefactor  = 1.60111
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 2.01329
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   720.2603     FROM HESSE     STATUS=FAILED        99 CALLS      896 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.538        .91761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    35.013        .91815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    855.97        .48397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.4372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .96675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    608.36        .75596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    263.07        .51312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    45.848        .10147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    487.71        .73344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.048        44.654        .23796E-02   -1.4882    
  15  Prefactor     .10000E-03    89.909        .98044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          28.276        24.141        .18207E-02   -1.4644    
  17  Prefactor     .10000E-03    371.83        .10638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    101.00        .10219E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    1730.7        .84777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     365.12        1282.6        .33300E-02   -1.1863    
  21  norm          .10000E-03    468.82        .94274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10079E-03    6416.2        .49297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     516.06        509.35         .0000       -1.5191    
  24  Prefactor     1.6011        1.0597         .0000       -1.5455    
  25  Prefactor    10000.0        .20610        .64245E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .25505       -.40571E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.0133        1.0159        .12293E-05   -.64018    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.04636e-09
Minuit parameter uncertainties:
  1  2.33187e-07
  2  4.70921e-06
  3  0.000691478
  4  0.000971739
  5  1.66013e-05
  6  1.06594e-06
  7  1.58083e-06
  8  3.62306e-05
  9  5.0404e-07
  10  0.0059729
  11  0.00180457
  12  0.00220602
  13  0.000535512
  14  44.7419
  15  0.000271453
  16  24.1488
  17  0.000151552
  18  5.70857e-05
  19  0.0197509
  20  1412.4
  21  0.00101778
  22  0.0996209
  23  1.00284
  24  1.05971
  25  0.000604051
  26  1.67564e-06
  27  1.02712
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 720.26029977

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  2.828e+01  2.415e+01  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:  2.013e+00  1.027e+00  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.000e-02  1.676e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 39.474 28.804
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.30e-07 +/- 5.38e-07
Energy Flux (Fixed Index): 2.29e-04 +/- 1.96e-04

TS (Fixed Index): 3.39
Ra Dec: 39.474 28.804
Photon Flux Upper Limit: 2.02e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.34e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166852/likelihoodResults_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.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) = 719.756938642
delta logL = 0.503361127475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 719.668228334
delta logL = 0.592071436182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.849       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4197       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0453       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=   719.6682     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.849        18.222        .24393E-02   -.20410E-02
   2  alpha         1.4196        .57082        .13017       -.32619E-05
   3  Normalizat    .10000E-01    .57106        .31122    ** at limit **
   4  Prefactor     2.0454        .33564        .43175E-01    .10559E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8493
  alpha      = 1.41964
  Normalizat = 0.01
  Prefactor  = 2.04536
 **********
 **   18 **HESSE 
 **********

 FCN=   719.6682     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.849        23.993        .97528E-04   -1.4887    
   2  alpha         1.4196        .75610        .56768E-03   -.44687    
   3  Normalizat    .10000E-01    .67608        .11187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0454        .30114        .19079E-03   -.63221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41338e-08
Minuit parameter uncertainties:
  1  24.007
  2  0.77104
  3  1.66052e-06
  4  0.301417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166852': 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) = 719.668228271
delta logL = 0.59207149903

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  1.685e+01  2.401e+01  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  1.420e+00  7.710e-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:  2.045e+00  3.014e-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:  1.000e-02  1.661e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 39.474 28.804
Photon Index (Free Index): 1.42 +/- 0.77
Photon Flux (Free Index): 2.78e-07 +/- 3.83e-07
Energy Flux (Free Index): 4.48e-04 +/- 5.89e-04

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/166852/cmap_HighResolution_658713601_658972801_4FGL_J0237.8+2848_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-04', comment='SUCCESS', photon_flux='6.30e-07', energy_flux2='4.48e-04', photon_flux_error='5.38e-07', dlogl='5.92e-01', energy_flux='2.29e-04', photon_flux2='2.78e-07', job_status='DONE', time_completed='2021-12-07 13:48:17.989177', photon_index_error2='0.77', photon_index2='1.42', ts='3.39', fit_tolerance='1e-08', GAL='2.01', photon_index_error='0.00', photon_flux_upper_limit='2.02e-06', energy_flux_error2='5.89e-04', EG='0.01', time_epoch_completed='1638913697.99', return_code='101', job_id='166852', GAL2='2.05', EG2='0.01', return_code2='0', energy_flux_error='1.96e-04', photon_flux_error2='3.83e-07', ts2='4.58', photon_index='2.21' WHERE bin_id='1618' AND source_name='4FGL J0237.8+2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 13:48:18 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 166852: <4FGL_J0237.8+2848_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0237.8+2848_daily_bin1618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 13:35:12 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 13:39:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 13:39:02 2021
Terminated at Tue Dec  7 13:48:18 2021
Results reported at Tue Dec  7 13:48:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0237.8+2848_daily_bin1618 39.4737 28.8044 658713601 658972801 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 :                                   341.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            786 sec.

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

