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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin600
RA = 187.798, Dec = -14.2014
tmin = 394848001, tmax = 395107201
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='764904', job_status='RUN', time_executed='2021-09-05 21:58:10.098317', time_epoch_executed='1630904290.1' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764904

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764904/ft1_4FGL_J1231.1-1412_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764904/ft1_4FGL_J1231.1-1412_daily_bin600.fits outfile=/scratch/kocevski/764904/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin600.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.28
user 5.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764904/ft1_filtered_4FGL_J1231.1-1412_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/764904/ltcube_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.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/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits
.....................!
real 14.90
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764904/ft1_filtered_4FGL_J1231.1-1412_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/764904/ltcube_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.fits outfile=/scratch/kocevski/764904/expmap_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.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/764904/ltcube_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.fits
.....................!
real 191.68
user 186.37
sys 4.37

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/764904/ft1_filtered_4FGL_J1231.1-1412_daily_bin600.fits scfile=/scratch/kocevski/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits outfile=/scratch/kocevski/764904/cmap_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764904/ft1_filtered_4FGL_J1231.1-1412_daily_bin600.fits scfile=/scratch/kocevski/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits outfile=/scratch/kocevski/764904/cmap_HighResolution_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764904/ft1_filtered_4FGL_J1231.1-1412_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/764904/ft2_4FGL_J1231.1-1412_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764904/Model_4FGL_J1231.1-1412_daily_bin600.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/764904/ft1_filtered_4FGL_J1231.1-1412_daily_bin600.fits.....................!
real 74.59
user 73.08
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1628       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.992       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.472       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2152       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3140       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9124       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0199       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=   9423.682     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2573 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2384        2.6010       -.19597E-06   -.35050E-03
   2  Prefactor     .10000E-03    10.112       -.18861E-06** at limit **
   3  Prefactor     2.1614        5.1827        .10078E-05   -.19836E-02
   4  norm          .10000E-03    1.4170       -.23749E-06** at limit **
   5  Prefactor     .10006E-03    116.59       -.75388E-06** at limit **
   6  Prefactor     18.397        20.190       -.64656E-05   -.53142E-04
   7  Prefactor     36.860        48.705        .22955E-04    .15379E-03
   8  Prefactor     .10000E-03    37.679        .58475E-06** at limit **
   9  Prefactor     .10000E-03    13.393        .25864E-06** at limit **
  10  Prefactor     14.988        20.865        .31153E-06   -.58259E-05
  11  Prefactor     .10000E-03    1.3819       -.18192E-07** at limit **
  12  Prefactor     5.8070        1.9249       -.37614E-07   -.12877E-04
  13  Prefactor     .10000E-03    6.6266        .24529E-06** at limit **
  14  Prefactor     15.795        9.4166        .13794E-05    .81710E-04
  15  Prefactor     25.473        31.739        .37288E-06    .43805E-05
  16  Prefactor     .10000E-03    66.021       -.15647E-05** at limit **
  17  norm          1.2152        .27522        .14498E-07   -.20373E-04
  18  norm          2.3138        3.4292        .55215E-06   -.27674E-02
  19  norm          .10000E-03    2.9141        .17764E-07** at limit **
  20  Prefactor     3.9127        3.6016        .63935E-07   -.42986E-03
  21  Prefactor     .10000E-03    5.1781        .26344E-06** at limit **
  22  Normalizat    1.0590        .19307       -.47462E-06   -.14411E-04
  23  Prefactor     1.0198        .10850       -.40086E-06    .44741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2384
  Prefactor  = 0.0001
  Prefactor  = 2.16142
  norm       = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 18.397
  Prefactor  = 36.8598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9881
  Prefactor  = 0.0001
  Prefactor  = 5.80698
  Prefactor  = 0.0001
  Prefactor  = 15.7949
  Prefactor  = 25.4726
  Prefactor  = 0.0001
  norm       = 1.21517
  norm       = 2.31376
  norm       = 0.0001
  Prefactor  = 3.91269
  Prefactor  = 0.0001
  Normalizat = 1.05897
  Prefactor  = 1.01976
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.682     FROM HESSE     STATUS=OK           370 CALLS     2943 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2384        2.5701        .21745E-03   -1.5485    
   2  Prefactor     .10000E-03    10.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1614        7.8662        .14004E-02   -1.5414    
   4  norm          .10000E-03    1.4349        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    119.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.397        20.309        .93361E-04   -1.4850    
   7  Prefactor     36.860        48.846        .66039E-04   -1.4493    
   8  Prefactor     .10000E-03    38.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.988        20.824        .10344E-03   -1.4933    
  11  Prefactor     .10000E-03    1.3915        .11140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8070        1.9255        .75255E-04   -1.5226    
  13  Prefactor     .10000E-03    6.6757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.795        9.4410        .10077E-03   -1.4913    
  15  Prefactor     25.473        31.896        .79373E-04   -1.4698    
  16  Prefactor     .10000E-03    66.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2152        .27664        .22663E-04   -1.5487    
  18  norm          2.3138        3.9882        .12401E-02   -1.5404    
  19  norm          .10000E-03    2.9636        .16134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9127        3.6014        .85595E-03   -1.5312    
  21  Prefactor     .10000E-03    5.2160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0590        .22846        .33031E-03   -.91080    
  23  Prefactor     1.0198        .12858        .19398E-03   -.92074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73797e-08
Minuit parameter uncertainties:
  1  2.5703
  2  2.43166e-06
  3  7.86994
  4  1.7497e-06
  5  0.00528501
  6  20.3163
  7  48.8989
  8  3.50493e-05
  9  8.25505e-07
  10  20.8343
  11  9.92693e-07
  12  1.92551
  13  8.12397e-06
  14  9.44187
  15  31.9177
  16  1.55827e-05
  17  0.276636
  18  3.98867
  19  3.66797e-06
  20  3.60164
  21  4.58732e-06
  22  0.228669
  23  0.128617
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.807e+00  1.926e+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:  1.020e+00  1.286e-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.059e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.20
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 5.38e-05 +/- 1.78e-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) = 9423.28248749
delta logL = 0.399691507473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9423.27854785
delta logL = 0.403631144589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4204       1.0000         .10000E-03   10000.    
     2 'Index1    '    .95445       1.0000          .0000       10.000    
     3 'Normalizat'    1.0433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0233       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=   9423.279     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4204        25.959        .43150E-02    .12393E-02
   2  Index1        .95440        5.0160        .23591        .89395E-04
   3  Normalizat    1.0433        .16684        .75099E-01    .32446E-04
   4  Prefactor     1.0233        .59675E-01    .41826E-01    .22942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42035
  Index1     = 0.954402
  Normalizat = 1.04331
  Prefactor  = 1.02326
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.279     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4204        1.9209        .70499E-04   -1.5242    
   2  Index1        .95440        .36214        .85281E-02   -.94265    
   3  Normalizat    1.0433        .21775        .33236E-03   -.91593    
   4  Prefactor     1.0233        .12626        .19362E-03   -.91958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03255e-10
Minuit parameter uncertainties:
  1  1.92096
  2  0.363067
  3  0.217936
  4  0.126297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764904': 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) = 9423.27854777
delta logL = 0.40363122803

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.420e+00  1.921e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  9.544e-01  3.631e-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:  1.023e+00  1.263e-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.043e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.93
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.95 +/- 0.36
Photon Flux (Free Index): 7.91e-08 +/- 3.17e-08
Energy Flux (Free Index): 4.75e-05 +/- 1.67e-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/764904/cmap_HighResolution_394848001_395107201_4FGL_J1231.1-1412_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='4.75e-05', photon_flux_error='2.08e-08', dlogl='4.04e-01', energy_flux='5.38e-05', photon_flux2='7.91e-08', job_status='DONE', time_completed='2021-09-05 22:11:36.817014', photon_index_error2='0.36', photon_index2='0.95', ts='33.20', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.06', time_epoch_completed='1630905096.82', return_code='0', job_id='764904', GAL2='1.02', EG2='1.04', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='3.17e-08', ts2='33.93', photon_index='0.63' WHERE bin_id='600' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:11:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 764904: <4FGL_J1231.1-1412_daily_bin600> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin600> 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) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:55:54 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:54 2021
Terminated at Sun Sep  5 22:11:37 2021
Results reported at Sun Sep  5 22:11:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin600 187.798 -14.2014 394848001 395107201 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 :                                   802.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            952 sec.

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

