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


Performing analysis on: 4FGL_J0237.8+2848_daily_bin1229
RA = 39.4737, Dec = 28.8044
tmin = 557884801, tmax = 558144001
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='559651', job_status='RUN', time_executed='2021-08-16 07:28:39.958916', time_epoch_executed='1629124119.96' WHERE source_name='4FGL J0237.8+2848' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559651/ft1_4FGL_J0237.8+2848_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559651/ft1_4FGL_J0237.8+2848_daily_bin1229.fits outfile=/scratch/kocevski/559651/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1229.fits ra=39.4737 dec=28.8044 rad=12.0 tmin=557884801.0 tmax=558144001.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 14.66
user 3.84
sys 10.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.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/559651/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/559651/ft1_filtered_4FGL_J0237.8+2848_daily_bin1229.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 10.65
user 0.34
sys 9.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559651/ft1_filtered_4FGL_J0237.8+2848_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/559651/ltcube_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.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/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.fits
.....................!
real 24.85
user 13.84
sys 10.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559651/ft1_filtered_4FGL_J0237.8+2848_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/559651/ltcube_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.fits outfile=/scratch/kocevski/559651/expmap_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.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/559651/ltcube_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.fits
.....................!
real 204.76
user 186.35
sys 17.38

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/559651/ft1_filtered_4FGL_J0237.8+2848_daily_bin1229.fits scfile=/scratch/kocevski/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.fits outfile=/scratch/kocevski/559651/cmap_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.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 9.96
user 0.41
sys 9.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559651/ft1_filtered_4FGL_J0237.8+2848_daily_bin1229.fits scfile=/scratch/kocevski/559651/ft2_4FGL_J0237.8+2848_daily_bin1229.fits outfile=/scratch/kocevski/559651/cmap_HighResolution_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.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 9.91
user 0.40
sys 9.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    97.622       1.0000         .10000E-03   10000.    
     3 'norm      '    26.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.936       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15556E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    84.937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    52.466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    152.77       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15541E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    22.022       1.0000         .10000E-03   10000.    
    22 'norm      '    273.42       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23356E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5966       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42033       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=   496.8318     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3194 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93822        11.143       -.35696E-06   -.38411E-04
   2  Prefactor     97.637        182.52        .12812E-04    .34033E-05
   3  norm          26.140        31.847       -.26787E-05    .21626E-04
   4  Prefactor     .10000E-03    6178.5       -.13474E-02** at limit **
   5  Prefactor     .10000E-03    35.261       -.33255E-05** at limit **
   6  Prefactor     .10000E-03    32.962        .28508E-05** at limit **
   7  norm          .10000E-03    7.2148       -.43276E-08** at limit **
   8  Prefactor     27.934        44.197        .32836E-06    .26146E-05
   9  norm          .10000E-03    1.2482       -.27265E-08** at limit **
  10  norm          .10000E-03    473.26        .10715E-03** at limit **
  11  Prefactor     15.118        275.35        .27292E-04    .21564E-05
  12  Prefactor     .10000E-03    16.392       -.15801E-07** at limit **
  13  Prefactor     .10000E-03    116.10       -.19007E-04** at limit **
  14  norm          84.937        76.487       -.17872E-06   -.13711E-05
  15  Prefactor     .10000E-03    121.49        .10631E-04** at limit **
  16  norm          52.468        23.015        .15560E-06    .21958E-04
  17  Prefactor     .10000E-03    69.775        .37923E-05** at limit **
  18  Prefactor     .10000E-03    18.804        .62397E-07** at limit **
  19  Prefactor     152.75        164.30       -.16389E-04    .72807E-07
  20  Prefactor     .10000E-03    502.73        .49605E-04** at limit **
  21  norm          22.010        60.090       -.43914E-05    .21597E-06
  22  norm          273.40        252.80       -.12760E-04   -.32246E-05
  23  Prefactor     .10000E-03    573.98       -.83874E-04** at limit **
  24  Prefactor     .10000E-03    22.663       -.19527E-06** at limit **
  25  Prefactor     .10000E-03    11.116        .16426E-06** at limit **
  26  Normalizat    1.5954        .93761       -.66539E-06    .64205E-04
  27  Prefactor     .42068        .35258        .22155E-05    .55309E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.938216
  Prefactor  = 97.6366
  norm       = 26.1395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.9335
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 84.9366
  Prefactor  = 0.0001
  norm       = 52.4682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.746
  Prefactor  = 0.0001
  norm       = 22.0104
  norm       = 273.401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.59544
  Prefactor  = 0.42068
 **********
 **   18 **HESSE 
 **********

 FCN=   496.8318     FROM HESSE     STATUS=OK           472 CALLS     3666 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93822        11.016        .13675E-03   -1.5514    
   2  Prefactor     97.637        182.73        .40684E-04   -1.3729    
   3  norm          26.140        31.863        .39181E-03   -1.4685    
   4  Prefactor     .10000E-03    6178.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.277        .12937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.992        .12508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.2148        .58504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.934        44.193        .75798E-04   -1.4650    
   9  norm          .10000E-03    1.2482        .24332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    473.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.118        275.88        .10306E-03   -1.4930    
  12  Prefactor     .10000E-03    16.394        .88195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    116.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          84.937        76.600        .43588E-04   -1.3862    
  15  Prefactor     .10000E-03    121.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          52.468        23.059        .55371E-04   -1.4258    
  17  Prefactor     .10000E-03    69.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.805        .94469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     152.75        164.30        .16306E-03   -1.3230    
  20  Prefactor     .10000E-03    502.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.010        60.779        .85354E-04   -1.4769    
  22  norm          273.40        252.66        .12264E-03   -1.2386    
  23  Prefactor     .10000E-03    573.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.663        .10372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.220        .72562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5954        1.0594        .33377E-03   -.75131    
  27  Prefactor     .42068        .39725        .23062E-03   -1.1577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72525e-10
Minuit parameter uncertainties:
  1  6.43085
  2  183.799
  3  31.884
  4  0.000625709
  5  3.4707e-05
  6  1.80526e-05
  7  5.5432e-07
  8  44.2448
  9  1.52968e-07
  10  2.02748e-05
  11  129.863
  12  1.30896e-06
  13  2.90492e-06
  14  76.6896
  15  4.99839e-06
  16  23.0626
  17  4.0595e-05
  18  8.49206e-07
  19  164.799
  20  0.000264911
  21  60.9504
  22  253.678
  23  2.70969e-06
  24  5.19023e-07
  25  5.62057e-05
  26  1.07489
  27  0.39989
Done.

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

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  5.247e+01  2.306e+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:  4.207e-01  3.999e-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.595e+00  1.075e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.02
Ra Dec: 39.474 28.804
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.17e-06 +/- 5.14e-07
Energy Flux (Fixed Index): 4.26e-04 +/- 1.87e-04

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) = 496.566772102
delta logL = 0.264978402236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 496.549733663
delta logL = 0.282016841103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    54.202       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8723       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38968       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=   496.5497     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      185 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          54.202        24.133        .13620E-02   -.84759E-03
   2  alpha         1.8724        .42002        .85181E-01   -.12252E-05
   3  Normalizat    1.7280        .89475        .73248E-01    .88597E-06
   4  Prefactor     .38993        .33581        .38103E-01    .35593E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 54.202
  alpha      = 1.87242
  Normalizat = 1.72804
  Prefactor  = 0.389932
 **********
 **   18 **HESSE 
 **********

 FCN=   496.5497     FROM HESSE     STATUS=OK            29 CALLS      214 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          54.202        24.246        .54482E-04   -1.4234    
   2  alpha         1.8724        .42478        .37463E-03   -.25375    
   3  Normalizat    1.7280        .99816        .32404E-03   -.71557    
   4  Prefactor     .38993        .37400        .23861E-03   -1.1732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81777e-10
Minuit parameter uncertainties:
  1  24.25
  2  0.42699
  3  1.01021
  4  0.376364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559651': 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) = 496.549733418
delta logL = 0.282017086409

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  5.420e+01  2.425e+01  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  1.872e+00  4.270e-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:  3.899e-01  3.764e-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.728e+00  1.010e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.18
Ra Dec: 39.474 28.804
Photon Index (Free Index): 1.87 +/- 0.43
Photon Flux (Free Index): 9.89e-07 +/- 5.01e-07
Energy Flux (Free Index): 5.89e-04 +/- 4.03e-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/559651/cmap_HighResolution_557884801_558144001_4FGL_J0237.8+2848_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-06', energy_flux2='5.89e-04', photon_flux_error='5.14e-07', dlogl='2.82e-01', energy_flux='4.26e-04', photon_flux2='9.89e-07', job_status='DONE', time_completed='2021-08-16 07:37:04.044219', photon_index_error2='0.43', photon_index2='1.87', ts='22.02', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', energy_flux_error2='4.03e-04', EG='1.60', time_epoch_completed='1629124624.04', return_code='0', job_id='559651', GAL2='0.39', EG2='1.73', return_code2='0', energy_flux_error='1.87e-04', photon_flux_error2='5.01e-07', ts2='22.18', photon_index='2.21' WHERE bin_id='1229' AND source_name='4FGL J0237.8+2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 07:37:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 559651: <4FGL_J0237.8+2848_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0237.8+2848_daily_bin1229> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 07:20:44 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 07:24:01 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:24:01 2021
Terminated at Mon Aug 16 07:37:06 2021
Results reported at Mon Aug 16 07:37:06 2021

Your job looked like:

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

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

