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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1012
RA = 187.798, Dec = -14.2014
tmin = 501638401, tmax = 501897601
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='766747', job_status='RUN', time_executed='2021-09-05 22:03:52.785368', time_epoch_executed='1630904632.79' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766747/ft1_4FGL_J1231.1-1412_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766747/ft1_4FGL_J1231.1-1412_daily_bin1012.fits outfile=/scratch/kocevski/766747/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1012.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=501638401.0 tmax=501897601.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.87
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.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/766747/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.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.82
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/766747/ltcube_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.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/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits
.....................!
real 14.35
user 13.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/766747/ltcube_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.fits outfile=/scratch/kocevski/766747/expmap_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.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/766747/ltcube_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.fits
.....................!
real 193.59
user 188.16
sys 4.93

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/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits scfile=/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits outfile=/scratch/kocevski/766747/cmap_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits scfile=/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits outfile=/scratch/kocevski/766747/cmap_HighResolution_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766747/Model_4FGL_J1231.1-1412_daily_bin1012.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/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits.....................!
real 59.40
user 58.03
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits', '/scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits', expMap='/scratch/kocevski/766747/expmap_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.fits', expCube='/scratch/kocevski/766747/ltcube_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/766747/Model_4FGL_J1231.1-1412_daily_bin1012.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/766747/ft1_filtered_4FGL_J1231.1-1412_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/766747/ft2_4FGL_J1231.1-1412_daily_bin1012.fits
Exposure map: /scratch/kocevski/766747/expmap_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.fits
Exposure cube: /scratch/kocevski/766747/ltcube_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/766747/Model_4FGL_J1231.1-1412_daily_bin1012.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) = 6983.68701582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15840E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.697       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 '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.615       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4592       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.776       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    146.58       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1798       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .76840E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.484       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9807       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .54884       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=   6983.666     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2537 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1199       -.42514E-07** at limit **
   2  Prefactor     .10000E-03    11.735        .12084E-05** at limit **
   3  Prefactor     .10000E-03    25.559       -.17682E-05** at limit **
   4  norm          12.695        5.5720       -.39888E-06    .25208E-03
   5  Prefactor     .10000E-03    15.397       -.15173E-06** at limit **
   6  Prefactor     .10000E-03    6.6022       -.62347E-07** at limit **
   7  Prefactor     .10000E-03    13.623       -.39438E-06** at limit **
   8  Prefactor     32.587        44.420        .12079E-04    .12154E-03
   9  Prefactor     .10000E-03    11.537        .16262E-06** at limit **
  10  Prefactor     .10000E-03    27.950        .24839E-05** at limit **
  11  Prefactor     4.3453        4.8775        .15295E-06   -.61366E-04
  12  Prefactor     6.4591        2.5122        .24034E-07   -.33216E-04
  13  Prefactor     10.775        12.662        .35119E-06   -.75869E-04
  14  Prefactor     13.721        13.858        .86031E-06   -.62104E-05
  15  Prefactor     .10000E-03    22.550        .19199E-05** at limit **
  16  Prefactor     146.94        86.545       -.13144E-04   -.57493E-03
  17  norm          1.1798        .31816        .31768E-07   -.54365E-03
  18  norm          .10000E-03    23.139       -.11548E-05** at limit **
  19  norm          .10023E-03    5.9913        .74311E-05** at limit **
  20  Prefactor     .10000E-03    3.9823        .93085E-06** at limit **
  21  Prefactor     17.484        12.862        .29226E-06   -.55524E-05
  22  Normalizat    1.9805        .24509       -.26424E-06   -.37729E-03
  23  Prefactor     .54897        .12682       -.19891E-05   -.38174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5872
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.34525
  Prefactor  = 6.45912
  Prefactor  = 10.7745
  Prefactor  = 13.7209
  Prefactor  = 0.0001
  Prefactor  = 146.941
  norm       = 1.17978
  norm       = 0.000100001
  norm       = 0.000100228
  Prefactor  = 0.0001
  Prefactor  = 17.4842
  Normalizat = 1.98053
  Prefactor  = 0.548971
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.666     FROM HESSE     STATUS=OK           364 CALLS     2901 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1254        .86355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.695        5.5459        .11242E-03   -1.4995    
   5  Prefactor     .10000E-03    15.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.587        44.540        .70164E-04   -1.4566    
   9  Prefactor     .10000E-03    11.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3453        4.8700        .18498E-03   -1.5291    
  12  Prefactor     6.4591        2.5131        .78509E-04   -1.5200    
  13  Prefactor     10.775        12.662        .12205E-03   -1.5051    
  14  Prefactor     13.721        13.996        .10813E-03   -1.4967    
  15  Prefactor     .10000E-03    22.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     146.94        90.737        .16642E-03   -1.3278    
  17  norm          1.1798        .31908        .23406E-04   -1.5491    
  18  norm          .10000E-03    24.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10023E-03    18.298        .34304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0200        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.484        12.866        .95785E-04   -1.4871    
  22  Normalizat    1.9805        .29131        .28390E-03   -.65039    
  23  Prefactor     .54897        .14866        .26203E-03   -1.0978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35261e-08
Minuit parameter uncertainties:
  1  3.22256e-06
  2  6.00053e-05
  3  9.90346e-05
  4  5.54613
  5  1.46556e-05
  6  1.18499e-05
  7  5.66661e-06
  8  44.585
  9  0.000203916
  10  0.000164866
  11  4.87044
  12  2.51317
  13  12.6655
  14  13.9998
  15  6.70944e-05
  16  90.823
  17  0.319084
  18  0.000244277
  19  0.00408658
  20  2.38587e-05
  21  12.868
  22  0.291576
  23  0.14877
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.459e+00  2.513e+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:  5.490e-01  1.488e-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.981e+00  2.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.49
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 6.98e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 5.99e-05 +/- 2.33e-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) = 6983.53630788
delta logL = 0.129488934907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6983.51796724
delta logL = 0.147829576517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9255       1.0000         .10000E-03   10000.    
     2 'Index1    '    .31127       1.0000          .0000       10.000    
     3 'Normalizat'    1.9917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54898       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=   6983.518     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9233        2.4010        .41241E-02   -.44931E-04
   2  Index1        .31099        .49024        .36956        .58634E-04
   3  Normalizat    1.9918        .23802        .64093E-01    .14217E-04
   4  Prefactor     .54907        .12488        .59272E-01    .48963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92328
  Index1     = 0.310991
  Normalizat = 1.99184
  Prefactor  = 0.549071
 **********
 **   18 **HESSE 
 **********

 FCN=   6983.518     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9233        2.8076        .78671E-04   -1.5221    
   2  Index1        .31099        .60088        .22369E-01   -1.2162    
   3  Normalizat    1.9918        .27560        .28342E-03   -.64755    
   4  Prefactor     .54907        .14559        .26221E-03   -1.0978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15551e-11
Minuit parameter uncertainties:
  1  2.80768
  2  0.613573
  3  0.275817
  4  0.145689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766747': 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) = 6983.51796532
delta logL = 0.147831500192

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.923e+00  2.808e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.110e-01  6.136e-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:  5.491e-01  1.457e-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.992e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.80
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.31 +/- 0.61
Photon Flux (Free Index): 5.30e-08 +/- 3.45e-08
Energy Flux (Free Index): 6.48e-05 +/- 2.78e-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/766747/cmap_HighResolution_501638401_501897601_4FGL_J1231.1-1412_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.98e-08', energy_flux2='6.48e-05', photon_flux_error='2.72e-08', dlogl='1.48e-01', energy_flux='5.99e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-05 22:15:02.138391', photon_index_error2='0.61', photon_index2='0.31', ts='26.49', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='2.78e-05', EG='1.98', time_epoch_completed='1630905302.14', return_code='0', job_id='766747', GAL2='0.55', EG2='1.99', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='3.45e-08', ts2='26.80', photon_index='0.63' WHERE bin_id='1012' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 766747: <4FGL_J1231.1-1412_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1012> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:48 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:02:16 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:02:16 2021
Terminated at Sun Sep  5 22:15:02 2021
Results reported at Sun Sep  5 22:15:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1012 187.798 -14.2014 501638401 501897601 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 :                                   662.35 sec.
    Max Memory :                                 1056 MB
    Average Memory :                             277.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            854 sec.

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

