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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1596
RA = 187.935, Dec = 28.7917
tmin = 653011201, tmax = 653270401
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='302916', job_status='RUN', time_executed='2021-09-14 00:29:14.595783', time_epoch_executed='1631604554.6' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302916/ft1_4FGL_J1231.7+2847_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302916/ft2_4FGL_J1231.7+2847_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302916/ft1_4FGL_J1231.7+2847_daily_bin1596.fits outfile=/scratch/kocevski/302916/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1596.fits ra=187.935 dec=28.7917 rad=12.0 tmin=653011201.0 tmax=653270401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.11
user 2.90
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302916/ft1_filtered_4FGL_J1231.7+2847_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/302916/ft2_4FGL_J1231.7+2847_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/302916/ltcube_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.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/302916/ft2_4FGL_J1231.7+2847_daily_bin1596.fits
.....................!
real 14.36
user 14.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302916/ft1_filtered_4FGL_J1231.7+2847_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/302916/ft2_4FGL_J1231.7+2847_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/302916/ltcube_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.fits outfile=/scratch/kocevski/302916/expmap_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.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/302916/ltcube_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.fits
.....................!
real 194.20
user 188.41
sys 5.29

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/302916/ft1_filtered_4FGL_J1231.7+2847_daily_bin1596.fits scfile=/scratch/kocevski/302916/ft2_4FGL_J1231.7+2847_daily_bin1596.fits outfile=/scratch/kocevski/302916/cmap_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302916/ft1_filtered_4FGL_J1231.7+2847_daily_bin1596.fits scfile=/scratch/kocevski/302916/ft2_4FGL_J1231.7+2847_daily_bin1596.fits outfile=/scratch/kocevski/302916/cmap_HighResolution_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.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.62
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15085E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0872       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .39426       1.0000         .10000E-03   10000.    
    14 'norm      '    39.056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.913       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.111       1.0000         .10000E-03   10000.    
    20 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    140.04       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11764E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.1878       1.0000         .10000E-03   10000.    
    26 'norm      '    14.086       1.0000         .10000E-03   10000.    
    27 'norm      '    2.9381       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .39584       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0027       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=   1404.535     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4235 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        6483.5        .23466E-03** at limit **
   2  Prefactor     .10000E-03    41.252        .89169E-05** at limit **
   3  Prefactor     .10000E-03    502.40       -.22541E-03** at limit **
   4  norm          .10000E-03    23.087       -.97855E-05** at limit **
   5  Prefactor     .10000E-03    71.256        .40958E-05** at limit **
   6  Prefactor     .10000E-03    62.294       -.40978E-04** at limit **
   7  Prefactor     .10000E-03    29.316        .52581E-05** at limit **
   8  norm          3.0833        6.3396        .41969E-05   -.55749E-04
   9  Prefactor     .10000E-03    12.925        .32175E-05** at limit **
  10  Prefactor     .10000E-03    3.7818       -.88184E-07** at limit **
  11  Prefactor     .10000E-03    2.4630        .76376E-08** at limit **
  12  Prefactor     .10000E-03    20.997        .17232E-05** at limit **
  13  norm          .39222        1.2047        .10784E-05   -.30605E-03
  14  norm          39.057        22.469       -.10490E-05   -.19072E-03
  15  Prefactor     30.889        29.240        .90432E-05   -.31270E-04
  16  Prefactor     .10000E-03    14.758       -.51172E-05** at limit **
  17  Prefactor     .10000E-03    74.858        .30522E-04** at limit **
  18  Prefactor     .50333        22.717        .46313E-05   -.24775E-03
  19  Prefactor     10.109        10.439        .71292E-06   -.83363E-04
  20  norm          .10000E-03    9.3850       -.61320E-06** at limit **
  21  Prefactor     140.05        66.009        .14088E-05   -.13085E-03
  22  norm          3.0150        5.5184       -.93643E-06   -.68178E-03
  23  Prefactor     .10000E-03    14.094       -.15215E-05** at limit **
  24  norm          .10000E-03    16.850        .69453E-05** at limit **
  25  norm          7.1828        10.353        .57402E-05   -.12634E-03
  26  norm          14.086        16.234        .16960E-05    .75621E-05
  27  norm          2.7798        150.82        .90425E-04   -.20453E-04
  28  Prefactor     .10000E-03    3.5854       -.14173E-06** at limit **
  29  Prefactor     .10000E-03    7.8165       -.32340E-06** at limit **
  30  Normalizat    .39601        .43906       -.13370E-04   -.39850E-03
  31  Prefactor     1.0034        .47501       -.10679E-04   -.33135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.392222
  norm       = 39.0571
  Prefactor  = 30.8888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.503331
  Prefactor  = 10.109
  norm       = 0.0001
  Prefactor  = 140.053
  norm       = 3.01497
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.18278
  norm       = 14.0865
  norm       = 2.77979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.396005
  Prefactor  = 1.00342
 **********
 **   18 **HESSE 
 **********

 FCN=   1404.535     FROM HESSE     STATUS=OK           610 CALLS     4845 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6482.4        .21328E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    500.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.564        .17581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    71.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0833        6.3363        .13073E-03   -1.5357    
   9  Prefactor     .10000E-03    12.941        .13164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7854        .71166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4644        .57445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.027        .16764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .39222        1.1787        .64570E-04   -1.5583    
  14  norm          39.057        22.221        .64136E-04   -1.4457    
  15  Prefactor     30.889        29.268        .36032E-03   -1.4596    
  16  Prefactor     .10000E-03    14.756        .14063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    74.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50333        184.54        .30379E-02   -1.5566    
  19  Prefactor     10.109        10.426        .11681E-03   -1.5072    
  20  norm          .10000E-03    9.5723        .22347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     140.05        65.884        .34041E-04   -1.3336    
  22  norm          3.0150        5.4691        .10987E-03   -1.5361    
  23  Prefactor     .10000E-03    14.101        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    17.385        .29956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.1828        10.439        .95847E-04   -1.5172    
  26  norm          14.086        16.425        .10672E-03   -1.4957    
  27  norm          2.7798        148.81        .23696E-03   -1.5374    
  28  Prefactor     .10000E-03    3.6212        .69211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.8224        .10234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .39601        .49820        .36121E-03   -1.1751    
  31  Prefactor     1.0034        .54474        .27133E-03   -.92616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86105e-09
Minuit parameter uncertainties:
  1  0.00147816
  2  9.16791e-06
  3  0.0002716
  4  0.000171315
  5  2.92336e-05
  6  2.63872e-05
  7  2.36593e-05
  8  6.33767
  9  4.92315e-05
  10  1.49048e-05
  11  4.67544e-07
  12  3.89954e-05
  13  1.17878
  14  22.2252
  15  29.2819
  16  1.74627e-05
  17  3.71748e-05
  18  19.3338
  19  10.4279
  20  8.03762e-05
  21  65.9188
  22  5.46996
  23  1.21639e-05
  24  8.93178e-06
  25  10.4418
  26  16.4299
  27  40.7835
  28  2.81624e-05
  29  2.35911e-05
  30  0.503932
  31  0.547771
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  3.089e+01  2.928e+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:  1.003e+00  5.478e-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:  3.960e-01  5.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.84e-08 +/- 7.43e-08
Energy Flux (Fixed Index): 5.45e-05 +/- 5.17e-05

TS (Fixed Index): 3.40
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 2.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302916/likelihoodResults_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.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) = 1404.5344113
delta logL = 0.000181636364459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1404.5343347
delta logL = 0.000258232202668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.493       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0131       1.0000          .0000       10.000    
     3 'Normalizat'    .39581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0032       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=   1404.534     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.426        1309.7        .18139E-02    .74238E-05
   2  Index         2.0115        5.4085        .98844E-01    .35729E-04
   3  Normalizat    .39569        .25846        .81561E-01   -.46445E-04
   4  Prefactor     1.0036        .31320        .44610E-01   -.82098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4264
  Index      = 2.0115
  Normalizat = 0.395689
  Prefactor  = 1.00364
 **********
 **   18 **HESSE 
 **********

 FCN=   1404.534     FROM HESSE     STATUS=OK            29 CALLS      250 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.426        35.562        .72557E-04   -1.4604    
   2  Index         2.0115        .59933        .41352E-02   -.64063    
   3  Normalizat    .39569        .43295        .36136E-03   -1.1752    
   4  Prefactor     1.0036        .51249        .27130E-03   -.92608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62574e-11
Minuit parameter uncertainties:
  1  35.5868
  2  0.60159
  3  0.436689
  4  0.515013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302916': 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) = 1404.53432158
delta logL = 0.000271359024509

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  3.043e+01  3.559e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.011e+00  6.016e-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:  1.004e+00  5.150e-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:  3.957e-01  4.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.01 +/- 0.60
Photon Flux (Free Index): 7.92e-08 +/- 8.02e-08
Energy Flux (Free Index): 5.32e-05 +/- 7.62e-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/302916/cmap_HighResolution_653011201_653270401_4FGL_J1231.7+2847_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-02', comment='SUCCESS', photon_flux='7.84e-08', energy_flux2='5.32e-05', photon_flux_error='7.43e-08', dlogl='2.71e-04', energy_flux='5.45e-05', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-09-14 00:37:10.534525', photon_index_error2='0.60', photon_index2='2.01', ts='3.40', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.81e-07', energy_flux_error2='7.62e-05', EG='0.40', time_epoch_completed='1631605030.53', return_code='0', job_id='302916', GAL2='1.00', EG2='0.40', return_code2='0', energy_flux_error='5.17e-05', photon_flux_error2='8.02e-08', ts2='3.39', photon_index='2.00' WHERE bin_id='1596' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:37:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 302916: <4FGL_J1231.7+2847_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1596> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:25:36 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:29:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:29:02 2021
Terminated at Tue Sep 14 00:37:11 2021
Results reported at Tue Sep 14 00:37:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1596 187.935 28.7917 653011201 653270401 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 :                                   472.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   488 sec.
    Turnaround time :                            695 sec.

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

