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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin949
RA = 187.935, Dec = 28.7917
tmin = 485308801, tmax = 485568001
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='775011', job_status='RUN', time_executed='2021-09-05 22:29:12.286888', time_epoch_executed='1630906152.29' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775011

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775011/ft1_4FGL_J1231.7+2847_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775011/ft1_4FGL_J1231.7+2847_daily_bin949.fits outfile=/scratch/kocevski/775011/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin949.fits ra=187.935 dec=28.7917 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.63
user 5.36
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.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/775011/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/775011/ltcube_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.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/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits
.....................!
real 14.91
user 14.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/775011/ltcube_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.fits outfile=/scratch/kocevski/775011/expmap_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.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/775011/ltcube_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.fits
.....................!
real 193.89
user 188.40
sys 4.87

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/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits scfile=/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits outfile=/scratch/kocevski/775011/cmap_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits scfile=/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits outfile=/scratch/kocevski/775011/cmap_HighResolution_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.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.81
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775011/Model_4FGL_J1231.7+2847_daily_bin949.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/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits.....................!
real 49.95
user 48.41
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits', '/scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits', expMap='/scratch/kocevski/775011/expmap_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.fits', expCube='/scratch/kocevski/775011/ltcube_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775011/Model_4FGL_J1231.7+2847_daily_bin949.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/775011/ft1_filtered_4FGL_J1231.7+2847_daily_bin949.fits
Spacecraft file(s): /scratch/kocevski/775011/ft2_4FGL_J1231.7+2847_daily_bin949.fits
Exposure map: /scratch/kocevski/775011/expmap_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.fits
Exposure cube: /scratch/kocevski/775011/ltcube_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775011/Model_4FGL_J1231.7+2847_daily_bin949.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) = 5437.4084984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.985       1.0000         .10000E-03   10000.    
     4 'norm      '    .11523E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10906E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.9563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8556       1.0000         .10000E-03   10000.    
    13 'norm      '    .76337       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4994       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.181       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    131.96       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8237       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9195       1.0000         .10000E-03   10000.    
    25 'norm      '    4.7183       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.780       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3001       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75038       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=   5437.389     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4120 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.949        .51073E-07** at limit **
   2  Prefactor     5.7892        2.7616        .56965E-06    .72597E-03
   3  Prefactor     12.029        32.272        .19102E-05    .13486E-03
   4  norm          .10000E-03    .75972       -.32039E-06** at limit **
   5  Prefactor     .10000E-03    3.8666        .19537E-06** at limit **
   6  Prefactor     18.836        31.830        .67125E-06   -.13109E-05
   7  Prefactor     .10000E-03    1.9482       -.71837E-07** at limit **
   8  norm          7.9569        4.8196        .75603E-06    .76573E-03
   9  Prefactor     .10000E-03    2.4950       -.39876E-07** at limit **
  10  Prefactor     3.2638        3.1849       -.31217E-06    .34059E-03
  11  Prefactor     .10000E-03    1.4986       -.56480E-06** at limit **
  12  Prefactor     7.8561        6.6564       -.73130E-07    .44671E-04
  13  norm          .76341        .34571        .66077E-07    .30745E-03
  14  norm          2.4994        5.6837        .10356E-05    .20606E-03
  15  Prefactor     15.182        11.758        .36268E-06    .17812E-03
  16  Prefactor     .10000E-03    5.3479        .14940E-07** at limit **
  17  Prefactor     132.00        106.51        .14937E-05    .49284E-04
  18  Prefactor     .10000E-03    6.3489       -.34345E-06** at limit **
  19  Prefactor     2.8237        3.6947        .26195E-07    .44664E-05
  20  norm          .10000E-03    2.5024        .20863E-06** at limit **
  21  Prefactor     .10000E-03    38.667        .19463E-06** at limit **
  22  norm          .10000E-03    1.0569       -.45731E-07** at limit **
  23  Prefactor     .10000E-03    14.298       -.41663E-06** at limit **
  24  norm          8.9195        6.2683        .97360E-06    .36080E-03
  25  norm          4.7186        4.0006        .72069E-06    .37322E-03
  26  norm          .10000E-03    5.7636       -.43320E-06** at limit **
  27  norm          .10000E-03    7.3647       -.62457E-07** at limit **
  28  Prefactor     .10000E-03    3.5906        .20563E-06** at limit **
  29  Prefactor     25.786        23.405        .39305E-06    .37825E-04
  30  Normalizat    1.2996        .24494       -.60050E-05    .30882E-03
  31  Prefactor     .75084        .25010        .61322E-05    .17755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.78917
  Prefactor  = 12.0294
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 18.8363
  Prefactor  = 0.0001
  norm       = 7.95687
  Prefactor  = 0.0001
  Prefactor  = 3.26382
  Prefactor  = 0.000100003
  Prefactor  = 7.85611
  norm       = 0.763413
  norm       = 2.49935
  Prefactor  = 15.1816
  Prefactor  = 0.0001
  Prefactor  = 132
  Prefactor  = 0.0001
  Prefactor  = 2.82371
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.91947
  norm       = 4.71864
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7857
  Normalizat = 1.29964
  Prefactor  = 0.750842
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.389     FROM HESSE     STATUS=OK           626 CALLS     4746 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7892        2.7819        .40914E-03   -1.5227    
   3  Prefactor     12.029        32.374        .11571E-03   -1.5014    
   4  norm          .10000E-03    3.7076        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1220        .27975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.836        31.806        .92264E-04   -1.4840    
   7  Prefactor     .10000E-03    1.9616        .10045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.9569        4.8807        .51516E-03   -1.5144    
   9  Prefactor     .10000E-03    2.5009        .11374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2638        3.2164        .10724E-03   -1.5347    
  11  Prefactor     .10000E-03    6.1956        .16651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8561        6.6297        .14306E-03   -1.5147    
  13  norm          .76341        .34248        .27344E-04   -1.5533    
  14  norm          2.4994        5.6594        .24463E-03   -1.5392    
  15  Prefactor     15.182        11.660        .51398E-03   -1.4928    
  16  Prefactor     .10000E-03    5.3491        .16655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     132.00        106.39        .17526E-03   -1.3405    
  18  Prefactor     .10000E-03    6.4134        .18138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8237        3.6862        .15775E-03   -1.5372    
  20  norm          .10000E-03    2.5149        .11381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0583        .74028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9195        6.3111        .67103E-03   -1.5111    
  25  norm          4.7186        3.9922        .63004E-03   -1.5273    
  26  norm          .10000E-03    5.8335        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.3694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.6121        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     25.786        23.310        .78898E-04   -1.4692    
  30  Normalizat    1.2996        .25716        .23726E-03   -.83577    
  31  Prefactor     .75084        .26847        .33598E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16441e-09
Minuit parameter uncertainties:
  1  1.18676e-05
  2  2.78192
  3  32.4208
  4  0.000223281
  5  5.76399e-05
  6  31.8344
  7  1.21082e-07
  8  4.88094
  9  2.94399e-06
  10  3.21659
  11  0.000264597
  12  6.63027
  13  0.342481
  14  5.66058
  15  11.662
  16  8.95552e-06
  17  106.549
  18  1.40364e-05
  19  3.6865
  20  1.95225e-06
  21  3.61517e-05
  22  6.14312e-09
  23  6.17179e-05
  24  6.31157
  25  3.99243
  26  6.78112e-05
  27  4.70786e-06
  28  1.85627e-07
  29  23.318
  30  0.257415
  31  0.268941
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.518e+01  1.166e+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.508e-01  2.689e-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.300e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.13
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 2.06e-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) = 5437.26291682
delta logL = 0.125634458022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5437.25688387
delta logL = 0.131667414897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.559       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7340       1.0000          .0000       10.000    
     3 'Normalizat'    1.3106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74493       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.

 FCN=   5437.257     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.540        468.45        .24606E-02   -.19036E-05
   2  Index         1.7330        5.4799        .21832        .21606E-04
   3  Normalizat    1.3108        .15528        .53479E-01   -.17655E-05
   4  Prefactor     .74482        .11711        .76189E-01    .62536E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5395
  Index      = 1.73296
  Normalizat = 1.31077
  Prefactor  = 0.744823
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.257     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.540        13.154        .98423E-04   -1.4894    
   2  Index         1.7330        .51105        .74835E-02   -.71208    
   3  Normalizat    1.3108        .23732        .23646E-03   -.83245    
   4  Prefactor     .74482        .26332        .33726E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16569e-12
Minuit parameter uncertainties:
  1  13.1563
  2  0.512612
  3  0.237514
  4  0.263767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775011': 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) = 5437.2568809
delta logL = 0.13167038364

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.654e+01  1.316e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.733e+00  5.126e-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.448e-01  2.638e-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.311e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 187.935 28.792
Photon Index (Free Index): 1.73 +/- 0.51
Photon Flux (Free Index): 2.73e-08 +/- 3.00e-08
Energy Flux (Free Index): 4.02e-05 +/- 4.67e-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/775011/cmap_HighResolution_485308801_485568001_4FGL_J1231.7+2847_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='4.02e-05', photon_flux_error='2.96e-08', dlogl='1.32e-01', energy_flux='2.68e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-09-05 22:41:57.004013', photon_index_error2='0.51', photon_index2='1.73', ts='6.13', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='4.67e-05', EG='1.30', time_epoch_completed='1630906917.0', return_code='0', job_id='775011', GAL2='0.74', EG2='1.31', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='3.00e-08', ts2='6.40', photon_index='2.00' WHERE bin_id='949' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 775011: <4FGL_J1231.7+2847_daily_bin949> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin949> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 22:25:41 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:28:55 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:28:55 2021
Terminated at Sun Sep  5 22:41:57 2021
Results reported at Sun Sep  5 22:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin949 187.935 28.7917 485308801 485568001 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 :                                   758.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            976 sec.

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

