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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin601
RA = 187.798, Dec = -14.2014
tmin = 395107201, tmax = 395366401
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='764905', job_status='RUN', time_executed='2021-09-05 21:59:49.148992', time_epoch_executed='1630904389.15' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764905

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764905/ft1_4FGL_J1231.1-1412_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764905/ft1_4FGL_J1231.1-1412_daily_bin601.fits outfile=/scratch/kocevski/764905/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin601.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.22
user 7.85
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.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/764905/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/764905/ltcube_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.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/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits
.....................!
real 16.32
user 15.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/764905/ltcube_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.fits outfile=/scratch/kocevski/764905/expmap_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.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/764905/ltcube_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.fits
.....................!
real 193.90
user 188.52
sys 4.75

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

Setting source of interest to:
4FGL J1231.1-1412 @ 187.798 -14.2014

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits scfile=/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits outfile=/scratch/kocevski/764905/cmap_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.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.798 yref=-14.2014 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits scfile=/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits outfile=/scratch/kocevski/764905/cmap_HighResolution_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.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.798 yref=-14.2014 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.60
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764905/Model_4FGL_J1231.1-1412_daily_bin601.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/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits.....................!
real 62.88
user 60.75
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits', '/scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits', expMap='/scratch/kocevski/764905/expmap_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.fits', expCube='/scratch/kocevski/764905/ltcube_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764905/Model_4FGL_J1231.1-1412_daily_bin601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.1-1412'

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.774e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.283e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/764905/ft1_filtered_4FGL_J1231.1-1412_daily_bin601.fits
Spacecraft file(s): /scratch/kocevski/764905/ft2_4FGL_J1231.1-1412_daily_bin601.fits
Exposure map: /scratch/kocevski/764905/expmap_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.fits
Exposure cube: /scratch/kocevski/764905/ltcube_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764905/Model_4FGL_J1231.1-1412_daily_bin601.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) = 7603.87778703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3791       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95006       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28657E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.034       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6106       1.0000         .10000E-03   10000.    
    18 'norm      '    .14167E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .11917E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1801       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7603.766     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2217 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3797        3.4337        .47859E-06   -.45537E-03
   2  Prefactor     17.068        17.830       -.13874E-05   -.41310E-03
   3  Prefactor     .10000E-03    7.2303        .62097E-07** at limit **
   4  norm          .10000E-03    1.6366        .19315E-07** at limit **
   5  Prefactor     .10000E-03    15.071        .13046E-05** at limit **
   6  Prefactor     6.8018        11.584        .19570E-05   -.28424E-03
   7  Prefactor     .10000E-03    14.104       -.10804E-05** at limit **
   8  Prefactor     1.6711        96.566       -.49015E-06   -.36188E-04
   9  Prefactor     .10000E-03    6.9192        .11198E-06** at limit **
  10  Prefactor     5.8737        17.943        .43351E-05    .41297E-03
  11  Prefactor     .95168        5.9086        .32085E-05   -.29557E-03
  12  Prefactor     7.3294        2.6570       -.23816E-06   -.70823E-03
  13  Prefactor     .10000E-03    3.1496        .91489E-08** at limit **
  14  Prefactor     .10012E-03    6.9918        .12221E-05** at limit **
  15  Prefactor     4.5792        128.01        .19443E-05    .95339E-05
  16  Prefactor     45.026        40.033       -.16591E-05   -.26416E-03
  17  norm          1.6107        .35004       -.48782E-08   -.26228E-03
  18  norm          .10011E-03    6.7989       -.18650E-05** at limit **
  19  norm          .10000E-03    2.1998       -.48167E-07** at limit **
  20  Prefactor     .10000E-03    1.1894       -.59421E-08** at limit **
  21  Prefactor     .10000E-03    25.341        .35613E-06** at limit **
  22  Normalizat    1.1798        .21665       -.27911E-06   -.42592E-04
  23  Prefactor     .98796        .11931       -.28746E-06    .60493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37965
  Prefactor  = 17.0677
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.8018
  Prefactor  = 0.000100001
  Prefactor  = 1.67112
  Prefactor  = 0.0001
  Prefactor  = 5.87375
  Prefactor  = 0.951679
  Prefactor  = 7.32938
  Prefactor  = 0.0001
  Prefactor  = 0.000100122
  Prefactor  = 4.5792
  Prefactor  = 45.0259
  norm       = 1.61069
  norm       = 0.000100108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1798
  Prefactor  = 0.987965
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.766     FROM HESSE     STATUS=OK           366 CALLS     2583 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3797        3.4444        .67746E-03   -1.5289    
   2  Prefactor     17.068        18.050        .96963E-04   -1.4881    
   3  Prefactor     .10000E-03    7.2654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6540        .10888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8018        11.945        .76918E-03   -1.5186    
   7  Prefactor     .10000E-03    14.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6711        98.996        .31303E-03   -1.5449    
   9  Prefactor     .10000E-03    6.9247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8737        19.015        .16562E-03   -1.5223    
  11  Prefactor     .95168        6.3543        .40133E-03   -1.5513    
  12  Prefactor     7.3294        2.6408        .79302E-04   -1.5166    
  13  Prefactor     .10000E-03    3.1532        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    41.612        .42295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5792        130.05        .18815E-03   -1.5280    
  16  Prefactor     45.026        40.691        .29872E-03   -1.4365    
  17  norm          1.6107        .35335        .21751E-04   -1.5454    
  18  norm          .10011E-03    28.134        .40696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2187        .12618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1913        .92864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.242        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1798        .25259        .32328E-03   -.87229    
  23  Prefactor     .98796        .14083        .19902E-03   -.93132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81222e-09
Minuit parameter uncertainties:
  1  3.44451
  2  18.0558
  3  4.7092e-06
  4  3.18542e-07
  5  0.000319243
  6  11.9493
  7  0.000246237
  8  25.7682
  9  2.96258e-05
  10  19.0345
  11  4.91872
  12  2.64083
  13  1.01066e-06
  14  0.00450592
  15  48.9232
  16  40.7161
  17  0.353349
  18  0.00349062
  19  7.72799e-06
  20  1.76926e-06
  21  9.01622e-05
  22  0.252855
  23  0.140886
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.329e+00  2.641e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.283e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.880e-01  1.409e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.180e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.66
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 7.92e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 6.79e-05 +/- 2.45e-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) = 7602.84624254
delta logL = 0.920178701675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7602.83521981
delta logL = 0.9312014236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8767       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1700       1.0000          .0000       10.000    
     3 'Normalizat'    1.1319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99636       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7602.835     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      232 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8767        28.453        .38249E-02    .13493E-02
   2  Index1        1.1700        5.4153        .18713        .66657E-04
   3  Normalizat    1.1319        .20296        .74297E-01   -.36027E-03
   4  Prefactor     .99636        .63613E-01    .46222E-01   -.54218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.87668
  Index1     = 1.17002
  Normalizat = 1.13186
  Prefactor  = 0.99636
 **********
 **   18 **HESSE 
 **********

 FCN=   7602.835     FROM HESSE     STATUS=OK            27 CALLS      259 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8767        2.4639        .68550E-04   -1.5183    
   2  Index1        1.1700        .37462        .67524E-02   -.87259    
   3  Normalizat    1.1319        .24624        .32881E-03   -.88735    
   4  Prefactor     .99636        .13921        .19801E-03   -.92851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06116e-10
Minuit parameter uncertainties:
  1  2.46389
  2  0.375475
  3  0.246491
  4  0.139258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764905': 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) = 7602.83521981
delta logL = 0.931201427825

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.877e+00  2.464e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.170e+00  3.755e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.964e-01  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.132e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.39
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.17 +/- 0.38
Photon Flux (Free Index): 1.29e-07 +/- 5.45e-08
Energy Flux (Free Index): 6.20e-05 +/- 1.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/764905/cmap_HighResolution_395107201_395366401_4FGL_J1231.1-1412_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.92e-08', energy_flux2='6.20e-05', photon_flux_error='2.85e-08', dlogl='9.31e-01', energy_flux='6.79e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-05 22:11:25.812628', photon_index_error2='0.38', photon_index2='1.17', ts='29.66', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.18', time_epoch_completed='1630905085.81', return_code='0', job_id='764905', GAL2='1.00', EG2='1.13', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='5.45e-08', ts2='31.39', photon_index='0.63' WHERE bin_id='601' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 764905: <4FGL_J1231.1-1412_daily_bin601> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin601> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:55:45 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:55:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:55:56 2021
Terminated at Sun Sep  5 22:11:26 2021
Results reported at Sun Sep  5 22:11:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin601 187.798 -14.2014 395107201 395366401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.1-1412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            941 sec.

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

