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


Performing analysis on: 4FGL_J0237.8+2848_daily_bin1265
RA = 39.4737, Dec = 28.8044
tmin = 567216001, tmax = 567475201
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='560979', job_status='RUN', time_executed='2021-08-16 07:27:23.801479', time_epoch_executed='1629124043.8' WHERE source_name='4FGL J0237.8+2848' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560979/ft1_4FGL_J0237.8+2848_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560979/ft1_4FGL_J0237.8+2848_daily_bin1265.fits outfile=/scratch/kocevski/560979/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1265.fits ra=39.4737 dec=28.8044 rad=12.0 tmin=567216001.0 tmax=567475201.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 7.47
user 2.64
sys 4.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.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/560979/ft1_filteredMKT_4FGL_J0237.8+2848_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/560979/ft1_filtered_4FGL_J0237.8+2848_daily_bin1265.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 5.11
user 0.33
sys 4.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/560979/ft1_filtered_4FGL_J0237.8+2848_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/560979/ltcube_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.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/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.fits
.....................!
real 19.46
user 13.85
sys 5.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560979/ft1_filtered_4FGL_J0237.8+2848_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/560979/ltcube_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.fits outfile=/scratch/kocevski/560979/expmap_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.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/560979/ltcube_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.fits
.....................!
real 202.21
user 188.85
sys 11.00

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/560979/ft1_filtered_4FGL_J0237.8+2848_daily_bin1265.fits scfile=/scratch/kocevski/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.fits outfile=/scratch/kocevski/560979/cmap_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.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 4.90
user 0.38
sys 4.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/560979/ft1_filtered_4FGL_J0237.8+2848_daily_bin1265.fits scfile=/scratch/kocevski/560979/ft2_4FGL_J0237.8+2848_daily_bin1265.fits outfile=/scratch/kocevski/560979/cmap_HighResolution_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.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 5.33
user 0.36
sys 4.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3395       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4934       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5908       1.0000         .10000E-03   10000.    
     9 'norm      '    .94672       1.0000         .10000E-03   10000.    
    10 'norm      '    58.366       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    68.839       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.252       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    65.078       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9741       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5434       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3737       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65481       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=   6334.865     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3346 TOTAL
                     EDM=   .57E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3396        .97701        .14568E-07   -.51599E-05
   2  Prefactor     .10000E-03    9.2827        .18505E-06** at limit **
   3  norm          2.6412        3.3914        .26218E-06    .44078E-04
   4  Prefactor     .10000E-03    91.815        .24852E-05** at limit **
   5  Prefactor     4.4941        6.2592       -.63253E-06   -.34090E-04
   6  Prefactor     .10000E-03    6.8148       -.62208E-08** at limit **
   7  norm          .10000E-03    .88887        .48905E-08** at limit **
   8  Prefactor     8.5910        9.5140        .72301E-07    .40837E-06
   9  norm          .94672        .53524        .19251E-07   -.41821E-07
  10  norm          58.368        65.668       -.10963E-06   -.47405E-06
  11  Prefactor     .10000E-03    38.006       -.20743E-08** at limit **
  12  Prefactor     7.1862        6.0257       -.69532E-06   -.32512E-05
  13  Prefactor     68.839        59.613        .14018E-06    .26746E-06
  14  norm          2.6296        7.1858        .43562E-05   -.24632E-04
  15  Prefactor     .10000E-03    13.967        .27932E-07** at limit **
  16  norm          2.9781        2.1415       -.15554E-07   -.44941E-04
  17  Prefactor     .10000E-03    25.073        .75906E-07** at limit **
  18  Prefactor     36.740        15.573        .12154E-06    .43391E-05
  19  Prefactor     .10000E-03    130.53       -.71427E-05** at limit **
  20  Prefactor     15.176        84.436        .15438E-04    .40738E-05
  21  norm          .10000E-03    6.7903        .50830E-07** at limit **
  22  norm          65.084        45.393       -.10112E-05   -.14448E-04
  23  Prefactor     .10000E-03    191.54        .57973E-05** at limit **
  24  Prefactor     4.9709        13.137        .15626E-05   -.77036E-05
  25  Prefactor     4.5435        3.3162        .35884E-07   -.20791E-04
  26  Normalizat    1.3737        .24580       -.63927E-06    .59415E-05
  27  Prefactor     .65478        .96600E-01   -.78088E-07    .47871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33958
  Prefactor  = 0.0001
  norm       = 2.64116
  Prefactor  = 0.0001
  Prefactor  = 4.49412
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.59098
  norm       = 0.946724
  norm       = 58.3677
  Prefactor  = 0.0001
  Prefactor  = 7.18617
  Prefactor  = 68.8394
  norm       = 2.6296
  Prefactor  = 0.0001
  norm       = 2.97808
  Prefactor  = 0.0001
  Prefactor  = 36.7402
  Prefactor  = 0.0001
  Prefactor  = 15.1758
  norm       = 0.0001
  norm       = 65.0836
  Prefactor  = 0.0001
  Prefactor  = 4.97085
  Prefactor  = 4.54347
  Normalizat = 1.37372
  Prefactor  = 0.654783
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.865     FROM HESSE     STATUS=OK           490 CALLS     3836 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3396        .97772        .49125E-04   -1.5402    
   2  Prefactor     .10000E-03    9.3024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6412        3.3705        .15710E-03   -1.5383    
   4  Prefactor     .10000E-03    91.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4941        6.2495        .18994E-03   -1.5284    
   6  Prefactor     .10000E-03    6.9215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .89334        .73188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5910        9.5329        .13676E-03   -1.5122    
   9  norm          .94672        .53144        .41509E-04   -1.5513    
  10  norm          58.368        65.671        .52513E-04   -1.4178    
  11  Prefactor     .10000E-03    38.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1862        6.0480        .14963E-03   -1.5172    
  13  Prefactor     68.839        59.645        .48379E-04   -1.4047    
  14  norm          2.6296        7.2008        .12574E-02   -1.5384    
  15  Prefactor     .10000E-03    13.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9781        2.1375        .94238E-04   -1.5363    
  17  Prefactor     .10000E-03    25.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.740        15.607        .66118E-04   -1.4495    
  19  Prefactor     .10000E-03    131.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.176        84.396        .10256E-03   -1.4929    
  21  norm          .10000E-03    6.8064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          65.084        45.436        .49748E-04   -1.4093    
  23  Prefactor     .10000E-03    191.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9709        13.129        .90160E-03   -1.5262    
  25  Prefactor     4.5435        3.3118        .11800E-03   -1.5282    
  26  Normalizat    1.3737        .27969        .32487E-03   -.81392    
  27  Prefactor     .65478        .10950        .18758E-03   -1.0533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34862e-10
Minuit parameter uncertainties:
  1  0.977728
  2  2.17922e-05
  3  3.37069
  4  5.02802e-05
  5  6.25042
  6  6.53908e-06
  7  8.37336e-08
  8  9.53455
  9  0.531447
  10  65.7526
  11  1.15797e-05
  12  6.04849
  13  59.6969
  14  7.20322
  15  1.92726e-06
  16  2.13757
  17  1.99589e-05
  18  15.6087
  19  1.70321e-05
  20  71.7314
  21  1.94566e-06
  22  45.4602
  23  0.000141332
  24  13.137
  25  3.31196
  26  0.280004
  27  0.10954
Done.

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

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  2.978e+00  2.138e+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:  6.548e-01  1.095e-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.374e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.87
Ra Dec: 39.474 28.804
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.64e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.73e-05

TS (Fixed Index): 3.87
Ra Dec: 39.474 28.804
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560979/likelihoodResults_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.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) = 6334.56581591
delta logL = 0.299661248157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6334.49168874
delta logL = 0.373788423697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0289       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6185       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65013       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=   6334.492     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0289        1.6014        .72612E-02    .13558E-02
   2  alpha         1.6185        .41016        .34605       -.89524E-04
   3  Normalizat    1.4043        .22739        .72760E-01    .44149E-04
   4  Prefactor     .65013        .94631E-01    .41734E-01    .13411E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02886
  alpha      = 1.61847
  Normalizat = 1.40428
  Prefactor  = 0.650127
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.492     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0289        2.2494        .84814E-04   -1.5423    
   2  alpha         1.6185        .65478        .13378E-01   -.36036    
   3  Normalizat    1.4043        .25660        .32195E-03   -.80505    
   4  Prefactor     .65013        .10665        .18819E-03   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.198e-10
Minuit parameter uncertainties:
  1  2.24945
  2  0.663642
  3  0.256839
  4  0.106679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560979': 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) = 6334.49168874
delta logL = 0.373788425773

Extracting fit parameters...

4FGL J0237.8+2848
   Spectrum: LogParabola
273         norm:  2.029e+00  2.249e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  1.618e+00  6.636e-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:  6.501e-01  1.067e-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.404e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 39.474 28.804
Photon Index (Free Index): 1.62 +/- 0.66
Photon Flux (Free Index): 3.39e-08 +/- 4.10e-08
Energy Flux (Free Index): 3.38e-05 +/- 3.25e-05

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/560979/cmap_HighResolution_567216001_567475201_4FGL_J0237.8+2848_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-05', comment='SUCCESS', photon_flux='6.64e-08', energy_flux2='3.38e-05', photon_flux_error='4.76e-08', dlogl='3.74e-01', energy_flux='2.42e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-08-16 07:41:40.492336', photon_index_error2='0.66', photon_index2='1.62', ts='3.87', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='3.25e-05', EG='1.37', time_epoch_completed='1629124900.49', return_code='0', job_id='560979', GAL2='0.65', EG2='1.40', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='4.10e-08', ts2='4.62', photon_index='2.21' WHERE bin_id='1265' AND source_name='4FGL J0237.8+2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 07:41:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 560979: <4FGL_J0237.8+2848_daily_bin1265> in cluster <slac> Done

Job <4FGL_J0237.8+2848_daily_bin1265> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Aug 16 07:25:42 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 07:25: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:25:56 2021
Terminated at Mon Aug 16 07:41:41 2021
Results reported at Mon Aug 16 07:41:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0237.8+2848_daily_bin1265 39.4737 28.8044 567216001 567475201 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 :                                   921.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            959 sec.

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

