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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin892
RA = 187.798, Dec = -14.2014
tmin = 470534401, tmax = 470793601
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='766576', job_status='RUN', time_executed='2021-09-05 22:03:16.277925', time_epoch_executed='1630904596.28' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766576/ft1_4FGL_J1231.1-1412_daily_bin892.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766576/ft1_4FGL_J1231.1-1412_daily_bin892.fits outfile=/scratch/kocevski/766576/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin892.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=470534401.0 tmax=470793601.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.98
user 3.40
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766576/ft1_filtered_4FGL_J1231.1-1412_daily_bin892.fits" evtable="EVENTS" scfile=/scratch/kocevski/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits sctable="SC_DATA" outfile=/scratch/kocevski/766576/ltcube_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.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/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits
.....................!
real 17.47
user 17.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766576/ft1_filtered_4FGL_J1231.1-1412_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits sctable="SC_DATA" expcube=/scratch/kocevski/766576/ltcube_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.fits outfile=/scratch/kocevski/766576/expmap_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.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/766576/ltcube_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.fits
.....................!
real 194.41
user 187.69
sys 4.64

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/766576/ft1_filtered_4FGL_J1231.1-1412_daily_bin892.fits scfile=/scratch/kocevski/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits outfile=/scratch/kocevski/766576/cmap_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766576/ft1_filtered_4FGL_J1231.1-1412_daily_bin892.fits scfile=/scratch/kocevski/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits outfile=/scratch/kocevski/766576/cmap_HighResolution_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766576/ft1_filtered_4FGL_J1231.1-1412_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/766576/ft2_4FGL_J1231.1-1412_daily_bin892.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766576/Model_4FGL_J1231.1-1412_daily_bin892.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/766576/ft1_filtered_4FGL_J1231.1-1412_daily_bin892.fits.....................!
real 63.58
user 62.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4310       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92426E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.054       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2888       1.0000         .10000E-03   10000.    
    18 'norm      '    15.592       1.0000         .10000E-03   10000.    
    19 'norm      '    .23601E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6370       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4281       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91643       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=   7494.117     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2563 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8014        .41592E-07** at limit **
   2  Prefactor     .10000E-03    10.130        .29807E-07** at limit **
   3  Prefactor     .10000E-03    9.6516       -.23462E-07** at limit **
   4  norm          2.8077        3.7746       -.18735E-06   -.33285E-03
   5  Prefactor     43.896        51.290       -.23397E-05    .25932E-04
   6  Prefactor     3.4305        21.963        .17035E-06   -.56039E-04
   7  Prefactor     .10000E-03    51.259        .47993E-06** at limit **
   8  Prefactor     68.837        62.186        .34339E-05   -.11240E-03
   9  Prefactor     .10000E-03    35.202       -.37788E-06** at limit **
  10  Prefactor     .10008E-03    790.47        .42765E-04** at limit **
  11  Prefactor     .10000E-03    5.1086        .15977E-07** at limit **
  12  Prefactor     7.7369        2.6345        .38191E-07    .24722E-04
  13  Prefactor     .10000E-03    15.763       -.82067E-07** at limit **
  14  Prefactor     2.7993        8.3998        .10795E-05   -.28136E-03
  15  Prefactor     81.740        56.312        .15638E-04   -.28455E-03
  16  Prefactor     79.211        70.530        .24820E-04    .22779E-03
  17  norm          2.2890        .39467       -.15807E-06    .18641E-02
  18  norm          15.596        9.9731       -.12307E-05    .30648E-03
  19  norm          .10003E-03    4.0047       -.37392E-05** at limit **
  20  Prefactor     3.6415        3.6893       -.50033E-06    .98655E-03
  21  Prefactor     .10000E-03    5.5291        .27250E-07** at limit **
  22  Normalizat    1.4283        .24446       -.10499E-05    .15206E-03
  23  Prefactor     .91646        .13377       -.94274E-06    .28146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8077
  Prefactor  = 43.8957
  Prefactor  = 3.43053
  Prefactor  = 0.0001
  Prefactor  = 68.8367
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Prefactor  = 7.73689
  Prefactor  = 0.0001
  Prefactor  = 2.7993
  Prefactor  = 81.7398
  Prefactor  = 79.2112
  norm       = 2.28897
  norm       = 15.5957
  norm       = 0.000100033
  Prefactor  = 3.64145
  Prefactor  = 0.0001
  Normalizat = 1.42828
  Prefactor  = 0.916462
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.117     FROM HESSE     STATUS=OK           366 CALLS     2929 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8205        .11340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8077        3.7596        .18677E-03   -1.5373    
   5  Prefactor     43.896        51.033        .60516E-04   -1.4382    
   6  Prefactor     3.4305        21.890        .21837E-03   -1.5338    
   7  Prefactor     .10000E-03    51.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     68.837        61.854        .48383E-04   -1.4047    
   9  Prefactor     .10000E-03    35.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10008E-03    813.52        .36440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7369        2.6320        .79268E-04   -1.5152    
  13  Prefactor     .10000E-03    16.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7993        8.3670        .24305E-03   -1.5373    
  15  Prefactor     81.740        55.599        .44412E-04   -1.3897    
  16  Prefactor     79.211        70.591        .45168E-04   -1.3926    
  17  norm          2.2890        .39699        .20979E-04   -1.5405    
  18  norm          15.596        9.9651        .10143E-03   -1.4918    
  19  norm          .10003E-03    16.501        .31921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6415        3.6531        .15947E-03   -1.5326    
  21  Prefactor     .10000E-03    5.5427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4283        .29021        .33473E-03   -.79814    
  23  Prefactor     .91646        .15878        .22444E-03   -.95568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57914e-09
Minuit parameter uncertainties:
  1  7.75564e-06
  2  1.93669e-05
  3  7.77501e-06
  4  3.7599
  5  51.0841
  6  17.3403
  7  0.000167446
  8  61.9118
  9  0.000149909
  10  0.0159916
  11  8.70209e-06
  12  2.63207
  13  2.68918e-07
  14  8.37047
  15  55.6345
  16  70.6655
  17  0.396988
  18  9.96611
  19  0.00147006
  20  3.65334
  21  6.23161e-06
  22  0.290551
  23  0.158857
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.737e+00  2.632e+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.165e-01  1.589e-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.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.01
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 8.36e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 7.17e-05 +/- 2.44e-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) = 7494.09514636
delta logL = 0.022324542163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7494.09389639
delta logL = 0.0235745188993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6191       1.0000         .10000E-03   10000.    
     2 'Index1    '    .53866       1.0000          .0000       10.000    
     3 'Normalizat'    1.4318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91706       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=   7494.094     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      198 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6192        5.2843        .36321E-02    .50026E-02
   2  Index1        .53821        .66586        .34165        .45612E-04
   3  Normalizat    1.4317        .24622        .75570E-01    .58688E-05
   4  Prefactor     .91717        .13245        .45222E-01    .12351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.61916
  Index1     = 0.538212
  Normalizat = 1.43175
  Prefactor  = 0.917174
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.094     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6192        2.7014        .79801E-04   -1.5156    
   2  Index1        .53821        .41751        .12167E-01   -1.1025    
   3  Normalizat    1.4317        .28150        .33443E-03   -.79715    
   4  Prefactor     .91717        .15651        .22441E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5498e-09
Minuit parameter uncertainties:
  1  2.7014
  2  0.419934
  3  0.281804
  4  0.156591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766576': 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) = 7494.09389537
delta logL = 0.0235755321901

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.619e+00  2.701e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  5.382e-01  4.199e-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.172e-01  1.566e-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.432e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.98
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.54 +/- 0.42
Photon Flux (Free Index): 7.72e-08 +/- 3.89e-08
Energy Flux (Free Index): 7.32e-05 +/- 2.63e-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/766576/cmap_HighResolution_470534401_470793601_4FGL_J1231.1-1412_daily_bin892.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.36e-08', energy_flux2='7.32e-05', photon_flux_error='2.84e-08', dlogl='2.36e-02', energy_flux='7.17e-05', photon_flux2='7.72e-08', job_status='DONE', time_completed='2021-09-05 22:14:58.726279', photon_index_error2='0.42', photon_index2='0.54', ts='40.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.43', time_epoch_completed='1630905298.73', return_code='0', job_id='766576', GAL2='0.92', EG2='1.43', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='3.89e-08', ts2='39.98', photon_index='0.63' WHERE bin_id='892' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:14:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 766576: <4FGL_J1231.1-1412_daily_bin892> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin892> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:37 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:00:50 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:00:50 2021
Terminated at Sun Sep  5 22:14:59 2021
Results reported at Sun Sep  5 22:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin892 187.798 -14.2014 470534401 470793601 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 :                                   697.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            862 sec.

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

