/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 152 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1231.7+2847_daily_bin37
RA = 187.935, Dec = 28.7917
tmin = 248918401, tmax = 249177601
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='769868', job_status='RUN', time_executed='2021-09-05 22:13:31.193546', time_epoch_executed='1630905211.19' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769868

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769868/ft1_4FGL_J1231.7+2847_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769868/ft1_4FGL_J1231.7+2847_daily_bin37.fits outfile=/scratch/kocevski/769868/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin37.fits ra=187.935 dec=28.7917 rad=12.0 tmin=248918401.0 tmax=249177601.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 2.03
user 1.81
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.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/769868/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.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.81
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/769868/ltcube_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.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/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits
.....................!
real 16.88
user 16.49
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/769868/ltcube_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.fits outfile=/scratch/kocevski/769868/expmap_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.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/769868/ltcube_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.fits
.....................!
real 192.32
user 186.30
sys 4.91

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits scfile=/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits outfile=/scratch/kocevski/769868/cmap_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.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=187.935 yref=28.7917 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/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits scfile=/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits outfile=/scratch/kocevski/769868/cmap_HighResolution_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.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=187.935 yref=28.7917 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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769868/Model_4FGL_J1231.7+2847_daily_bin37.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/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits.....................!
real 49.57
user 48.10
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits', '/scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits', expMap='/scratch/kocevski/769868/expmap_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.fits', expCube='/scratch/kocevski/769868/ltcube_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769868/Model_4FGL_J1231.7+2847_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/769868/ft1_filtered_4FGL_J1231.7+2847_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/769868/ft2_4FGL_J1231.7+2847_daily_bin37.fits
Exposure map: /scratch/kocevski/769868/expmap_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.fits
Exposure cube: /scratch/kocevski/769868/ltcube_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769868/Model_4FGL_J1231.7+2847_daily_bin37.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) = 5183.17301271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.501       1.0000         .10000E-03   10000.    
     4 'norm      '    6.2797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9995       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33048       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.6827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.0120       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.6169       1.0000         .10000E-03   10000.    
    25 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .67913       1.0000         .10000E-03   10000.    
    27 'norm      '    12.751       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.7247       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2027       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5183.164     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4286 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    51.690        .51306E-05** at limit **
   2  Prefactor     4.2825        2.5317        .11844E-06   -.29043E-03
   3  Prefactor     26.501        25.173        .10891E-06   -.19786E-04
   4  norm          6.2798        1.7332        .18435E-07   -.19852E-03
   5  Prefactor     .10000E-03    1.7529        .10531E-07** at limit **
   6  Prefactor     .10000E-03    27.011        .95097E-06** at limit **
   7  Prefactor     .10000E-03    1.8442       -.16126E-06** at limit **
   8  norm          4.0610        2.8343       -.62538E-07    .10460E-03
   9  Prefactor     10.027        8.6684        .69949E-07   -.56911E-05
  10  Prefactor     .88905        1.9721        .38910E-06    .10881E-03
  11  Prefactor     1.9997        2.4215        .77359E-07   -.14323E-03
  12  Prefactor     .10000E-03    10.715       -.59240E-07** at limit **
  13  norm          .33051        .23545        .17657E-07    .35960E-04
  14  norm          .10000E-03    2.3486        .86567E-08** at limit **
  15  Prefactor     25.063        12.934       -.26060E-07   -.15188E-04
  16  Prefactor     10.227        22.626       -.18675E-06   -.30545E-04
  17  Prefactor     .10000E-03    35.577       -.29030E-05** at limit **
  18  Prefactor     .10000E-03    4.0255        .17136E-07** at limit **
  19  Prefactor     .10000E-03    6.5377       -.19635E-07** at limit **
  20  norm          9.6815        5.6073       -.13623E-06    .10142E-03
  21  Prefactor     .10001E-03    77.369       -.41990E-05** at limit **
  22  norm          6.0118        4.3791       -.25659E-07   -.12561E-03
  23  Prefactor     .10000E-03    8.4749        .15475E-06** at limit **
  24  norm          8.6162        6.0440        .45680E-06   -.29437E-03
  25  norm          .10000E-03    2.5050       -.43810E-06** at limit **
  26  norm          .67823        7.1272        .21737E-05   -.19558E-03
  27  norm          12.751        17.664        .50124E-07   -.50201E-05
  28  Prefactor     .10000E-03    1.8263       -.16055E-06** at limit **
  29  Prefactor     7.7250        14.394        .15162E-05   -.19188E-03
  30  Normalizat    1.2028        .19366       -.19572E-06   -.17874E-04
  31  Prefactor     .76488        .21569       -.43782E-06   -.15797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 4.28246
  Prefactor  = 26.5009
  norm       = 6.27975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.06104
  Prefactor  = 10.027
  Prefactor  = 0.889055
  Prefactor  = 1.99969
  Prefactor  = 0.0001
  norm       = 0.330512
  norm       = 0.0001
  Prefactor  = 25.0632
  Prefactor  = 10.2266
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.6815
  Prefactor  = 0.000100007
  norm       = 6.01179
  Prefactor  = 0.0001
  norm       = 8.61624
  norm       = 0.0001
  norm       = 0.67823
  norm       = 12.7507
  Prefactor  = 0.0001
  Prefactor  = 7.72497
  Normalizat = 1.20279
  Prefactor  = 0.76488
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.164     FROM HESSE     STATUS=OK           628 CALLS     4914 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    55.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2825        2.5268        .83893E-04   -1.5294    
   3  Prefactor     26.501        25.211        .77819E-04   -1.4678    
   4  norm          6.2798        1.7331        .47702E-04   -1.5207    
   5  Prefactor     .10000E-03    1.7685        .93053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5688        .18838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0610        2.8709        .92010E-04   -1.5305    
   9  Prefactor     10.027        8.6736        .12654E-03   -1.5075    
  10  Prefactor     .88905        1.7497        .13909E-02   -1.5519    
  11  Prefactor     1.9997        2.3889        .11493E-03   -1.5425    
  12  Prefactor     .10000E-03    11.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .33051        .23010        .27947E-04   -1.5593    
  14  norm          .10000E-03    2.3679        .10769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.063        12.923        .80017E-04   -1.4706    
  16  Prefactor     10.227        22.625        .12525E-03   -1.5068    
  17  Prefactor     .10000E-03    37.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0577        .14104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7421        .35910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.6815        5.5986        .12424E-03   -1.5086    
  21  Prefactor     .10001E-03    81.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.0118        4.3852        .12356E-03   -1.5218    
  23  Prefactor     .10000E-03    8.4982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6162        6.0739        .68278E-03   -1.5121    
  25  norm          .10000E-03    2.5873        .11176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .67823        7.3511        .37177E-03   -1.5543    
  27  norm          12.751        17.658        .11218E-03   -1.4994    
  28  Prefactor     .10000E-03    1.8425        .95067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.7250        14.419        .72140E-03   -1.5152    
  30  Normalizat    1.2028        .22758        .23035E-03   -.86517    
  31  Prefactor     .76488        .25094        .32242E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31684e-10
Minuit parameter uncertainties:
  1  0.00154067
  2  2.52684
  3  25.2213
  4  1.73307
  5  7.1486e-07
  6  0.000220356
  7  0.000169538
  8  2.87104
  9  8.67467
  10  1.74977
  11  2.38902
  12  9.22515e-06
  13  0.2301
  14  5.65054e-07
  15  12.9244
  16  22.6437
  17  0.000811816
  18  2.00866e-06
  19  4.70202e-06
  20  5.59895
  21  0.00147396
  22  4.38548
  23  2.30987e-05
  24  6.07433
  25  2.62632e-05
  26  4.46613
  27  17.6653
  28  8.12368e-06
  29  14.4254
  30  0.227768
  31  0.251312
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.506e+01  1.292e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.649e-01  2.513e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.203e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.98
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 2.28e-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) = 5183.01858025
delta logL = 0.145407430344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5183.00294969
delta logL = 0.161037986598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.197       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7523       1.0000          .0000       10.000    
     3 'Normalizat'    1.2236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5183.003     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      245 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.198        14.738        .38409E-03   -.11763E-02
   2  Index         1.7523        .43303        .61494E-02   -.37965E-03
   3  Normalizat    1.2237        .22031        .22872E-03    .16891E-03
   4  Prefactor     .75273        .24958        .32484E-03    .13198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1979
  Index      = 1.75232
  Normalizat = 1.22366
  Prefactor  = 0.752725
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.003     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.198        14.726        .76818E-04   -1.4664    
   2  Index         1.7523        .43241        .24598E-03   -.70697    
   3  Normalizat    1.2237        .22040        .45743E-04   -.85875    
   4  Prefactor     .75273        .24974        .12994E-04   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12345e-09
Minuit parameter uncertainties:
  1  14.7284
  2  0.433346
  3  0.220572
  4  0.250111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769868': 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) = 5183.00294968
delta logL = 0.161038000242

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.720e+01  1.473e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.752e+00  4.333e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.527e-01  2.501e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.224e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.29
Ra Dec: 187.935 28.792
Photon Index (Free Index): 1.75 +/- 0.43
Photon Flux (Free Index): 4.62e-08 +/- 3.85e-08
Energy Flux (Free Index): 6.40e-05 +/- 5.72e-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/769868/cmap_HighResolution_248918401_249177601_4FGL_J1231.7+2847_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='6.40e-05', photon_flux_error='3.28e-08', dlogl='1.61e-01', energy_flux='4.42e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-05 22:26:18.334359', photon_index_error2='0.43', photon_index2='1.75', ts='10.98', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='5.72e-05', EG='1.20', time_epoch_completed='1630905978.33', return_code='0', job_id='769868', GAL2='0.75', EG2='1.22', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='3.85e-08', ts2='11.29', photon_index='2.00' WHERE bin_id='37' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 769868: <4FGL_J1231.7+2847_daily_bin37> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin37> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 22:10:42 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:10:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:10:47 2021
Terminated at Sun Sep  5 22:26:19 2021
Results reported at Sun Sep  5 22:26:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin37 187.935 28.7917 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.7+2847 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.00 sec.
    Max Memory :                                 1130 MB
    Average Memory :                             278.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            937 sec.

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

