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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin547
RA = 187.798, Dec = -14.2014
tmin = 381110401, tmax = 381369601
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='764819', job_status='RUN', time_executed='2021-09-05 21:57:58.712141', time_epoch_executed='1630904278.71' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764819/ft1_4FGL_J1231.1-1412_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764819/ft1_4FGL_J1231.1-1412_daily_bin547.fits outfile=/scratch/kocevski/764819/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin547.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=381110401.0 tmax=381369601.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 4.74
user 4.46
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.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/764819/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.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.54
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/764819/ltcube_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.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/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits
.....................!
real 17.29
user 16.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/764819/ltcube_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.fits outfile=/scratch/kocevski/764819/expmap_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.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/764819/ltcube_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.fits
.....................!
real 194.08
user 187.83
sys 4.98

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/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.fits scfile=/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits outfile=/scratch/kocevski/764819/cmap_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.fits scfile=/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits outfile=/scratch/kocevski/764819/cmap_HighResolution_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.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.58
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/764819/ft2_4FGL_J1231.1-1412_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764819/Model_4FGL_J1231.1-1412_daily_bin547.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/764819/ft1_filtered_4FGL_J1231.1-1412_daily_bin547.fits.....................!
real 80.03
user 78.56
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8542       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .69536       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1875       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4432       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90477       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=   10117.40     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2188 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1817       -.94410E-08** at limit **
   2  Prefactor     .10000E-03    8.2465       -.23887E-05** at limit **
   3  Prefactor     .10000E-03    3.0479        .15835E-06** at limit **
   4  norm          1.4870        2.5048       -.83672E-07   -.31596E-03
   5  Prefactor     .10000E-03    14.756        .13576E-05** at limit **
   6  Prefactor     6.6241        13.250        .11240E-05    .20521E-04
   7  Prefactor     .10000E-03    16.002       -.31525E-05** at limit **
   8  Prefactor     15.842        25.982        .23391E-05    .24223E-04
   9  Prefactor     .10000E-03    7.5248        .25647E-05** at limit **
  10  Prefactor     .10000E-03    12.199        .82731E-06** at limit **
  11  Prefactor     .10000E-03    1.1949       -.27348E-08** at limit **
  12  Prefactor     8.6131        2.2457       -.97665E-08    .27708E-03
  13  Prefactor     .10000E-03    3.5962       -.14331E-06** at limit **
  14  Prefactor     4.8545        4.6572        .63299E-06   -.11276E-02
  15  Prefactor     16.789        42.100        .44240E-05    .23698E-04
  16  Prefactor     .10000E-03    14.472        .18697E-05** at limit **
  17  norm          .69537        .23013       -.35283E-07    .23392E-03
  18  norm          .10000E-03    2.1451        .21245E-07** at limit **
  19  norm          .10000E-03    2.4945       -.35822E-07** at limit **
  20  Prefactor     7.1869        4.2644        .64784E-08   -.59971E-04
  21  Prefactor     .10000E-03    7.8840       -.95339E-06** at limit **
  22  Normalizat    1.4430        .18822       -.39202E-06    .18172E-04
  23  Prefactor     .90485        .10440       -.10134E-06   -.32510E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48704
  Prefactor  = 0.0001
  Prefactor  = 6.62407
  Prefactor  = 0.0001
  Prefactor  = 15.8423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.6131
  Prefactor  = 0.0001
  Prefactor  = 4.85446
  Prefactor  = 16.7888
  Prefactor  = 0.0001
  norm       = 0.695368
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.18692
  Prefactor  = 0.0001
  Normalizat = 1.44302
  Prefactor  = 0.904846
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.40     FROM HESSE     STATUS=OK           366 CALLS     2554 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2087        .10675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0514        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4870        2.5002        .20081E-03   -1.5464    
   5  Prefactor     .10000E-03    14.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6241        13.317        .15593E-03   -1.5193    
   7  Prefactor     .10000E-03    16.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.842        25.925        .10063E-03   -1.4912    
   9  Prefactor     .10000E-03    7.5500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2016        .10735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6131        2.2582        .37472E-03   -1.5121    
  13  Prefactor     .10000E-03    3.6096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8545        9.1569        .91289E-03   -1.5267    
  15  Prefactor     16.789        42.368        .97757E-04   -1.4888    
  16  Prefactor     .10000E-03    14.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69537        .23126        .25338E-04   -1.5541    
  18  norm          .10000E-03    2.1569        .14386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5361        .15475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1869        4.2588        .14962E-03   -1.5172    
  21  Prefactor     .10000E-03    8.0612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4430        .22749        .30095E-03   -.79392    
  23  Prefactor     .90485        .12448        .20863E-03   -.95972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29919e-09
Minuit parameter uncertainties:
  1  1.407e-07
  2  3.57668e-05
  3  1.36216e-06
  4  2.5004
  5  3.08412e-05
  6  13.3227
  7  9.44417e-05
  8  25.9434
  9  4.22128e-05
  10  1.39522e-05
  11  2.45189e-07
  12  2.25822
  13  6.82366e-07
  14  9.15952
  15  42.4439
  16  5.09105e-05
  17  0.231257
  18  1.04493e-06
  19  1.1603e-06
  20  4.259
  21  8.59112e-06
  22  0.227649
  23  0.124517
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.613e+00  2.258e+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.048e-01  1.245e-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.443e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.55
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 9.31e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 7.98e-05 +/- 2.09e-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) = 10117.0849267
delta logL = 0.310492402479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10117.0795274
delta logL = 0.315891737859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3825       1.0000         .10000E-03   10000.    
     2 'Index1    '    .85607       1.0000          .0000       10.000    
     3 'Normalizat'    1.4283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90698       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=   10117.08     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3825        30.574        .34616E-02    .85866E-03
   2  Index1        .85607        5.0492        .21208        .10455E-03
   3  Normalizat    1.4283        .30461        .68292E-01    .31205E-03
   4  Prefactor     .90698        .10035        .45094E-01    .51091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38251
  Index1     = 0.856071
  Normalizat = 1.42834
  Prefactor  = 0.90698
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.08     FROM HESSE     STATUS=OK            27 CALLS      233 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3825        2.2221        .71807E-04   -1.5129    
   2  Index1        .85607        .28342        .81360E-02   -.97693    
   3  Normalizat    1.4283        .21616        .30212E-03   -.79813    
   4  Prefactor     .90698        .12244        .20831E-03   -.95898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41259e-10
Minuit parameter uncertainties:
  1  2.22211
  2  0.283907
  3  0.216296
  4  0.122479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764819': 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) = 10117.0795274
delta logL = 0.315891738474

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.383e+00  2.222e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  8.561e-01  2.839e-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.070e-01  1.225e-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.428e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.06
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.86 +/- 0.28
Photon Flux (Free Index): 1.11e-07 +/- 3.60e-08
Energy Flux (Free Index): 7.37e-05 +/- 2.03e-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/764819/cmap_HighResolution_381110401_381369601_4FGL_J1231.1-1412_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.31e-08', energy_flux2='7.37e-05', photon_flux_error='2.44e-08', dlogl='3.16e-01', energy_flux='7.98e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 22:11:13.122203', photon_index_error2='0.28', photon_index2='0.86', ts='63.55', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.44', time_epoch_completed='1630905073.12', return_code='0', job_id='764819', GAL2='0.91', EG2='1.43', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='3.60e-08', ts2='64.06', photon_index='0.63' WHERE bin_id='547' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:11:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 764819: <4FGL_J1231.1-1412_daily_bin547> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin547> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:55:37 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:55:41 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:41 2021
Terminated at Sun Sep  5 22:11:13 2021
Results reported at Sun Sep  5 22:11:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin547 187.798 -14.2014 381110401 381369601 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 :                                   790.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            936 sec.

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

