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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin498
RA = 187.798, Dec = -14.2014
tmin = 368409601, tmax = 368668801
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='763407', job_status='RUN', time_executed='2021-09-05 21:54:07.868454', time_epoch_executed='1630904047.87' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763407/ft1_4FGL_J1231.1-1412_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763407/ft1_4FGL_J1231.1-1412_daily_bin498.fits outfile=/scratch/kocevski/763407/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin498.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=368409601.0 tmax=368668801.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.42
user 3.16
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763407/ft1_filtered_4FGL_J1231.1-1412_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/763407/ltcube_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.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/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits
.....................!
real 18.16
user 17.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763407/ft1_filtered_4FGL_J1231.1-1412_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/763407/ltcube_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.fits outfile=/scratch/kocevski/763407/expmap_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.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/763407/ltcube_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.fits
.....................!
real 194.89
user 188.29
sys 5.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/763407/ft1_filtered_4FGL_J1231.1-1412_daily_bin498.fits scfile=/scratch/kocevski/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits outfile=/scratch/kocevski/763407/cmap_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.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.64
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763407/ft1_filtered_4FGL_J1231.1-1412_daily_bin498.fits scfile=/scratch/kocevski/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits outfile=/scratch/kocevski/763407/cmap_HighResolution_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763407/ft1_filtered_4FGL_J1231.1-1412_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/763407/ft2_4FGL_J1231.1-1412_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763407/Model_4FGL_J1231.1-1412_daily_bin498.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/763407/ft1_filtered_4FGL_J1231.1-1412_daily_bin498.fits.....................!
real 60.41
user 57.34
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11910E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26160E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40483       1.0000         .10000E-03   10000.    
    18 'norm      '    16.457       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6896       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7698       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83547       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=   6613.204     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2215 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6794       -.37830E-06** at limit **
   2  Prefactor     .10000E-03    7.3473       -.99477E-07** at limit **
   3  Prefactor     .10012E-03    9.1117       -.17927E-05** at limit **
   4  norm          .10000E-03    2.9216       -.48981E-07** at limit **
   5  Prefactor     74.808        55.725       -.31165E-05   -.37257E-04
   6  Prefactor     .10000E-03    8.9538       -.78531E-06** at limit **
   7  Prefactor     .10000E-03    34.032        .20223E-05** at limit **
   8  Prefactor     .10000E-03    19.896       -.59634E-06** at limit **
   9  Prefactor     .10000E-03    7.2866        .23778E-06** at limit **
  10  Prefactor     .10000E-03    17.933        .17789E-05** at limit **
  11  Prefactor     .63921        8.1029       -.57033E-07   -.59422E-05
  12  Prefactor     7.9128        3.5231       -.45080E-08   -.17949E-04
  13  Prefactor     6.9419        15.350        .20393E-06    .18396E-05
  14  Prefactor     29.561        16.982       -.37010E-07    .22915E-05
  15  Prefactor     .10000E-03    22.418       -.26484E-05** at limit **
  16  Prefactor     .10000E-03    32.972        .14189E-06** at limit **
  17  norm          .40483        .24117        .24290E-07    .31809E-03
  18  norm          16.457        9.5824        .18944E-07   -.77007E-06
  19  norm          3.3677        4.1716        .22126E-06   -.11037E-04
  20  Prefactor     .10000E-03    2.6145       -.76835E-07** at limit **
  21  Prefactor     2.6885        12.882        .52293E-05    .11276E-03
  22  Normalizat    1.7698        .27294       -.11375E-05    .25731E-05
  23  Prefactor     .83556        .14286        .41140E-06    .61380E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  norm       = 0.0001
  Prefactor  = 74.8079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.639208
  Prefactor  = 7.91275
  Prefactor  = 6.94188
  Prefactor  = 29.5608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.404826
  norm       = 16.4567
  norm       = 3.36768
  Prefactor  = 0.0001
  Prefactor  = 2.68851
  Normalizat = 1.76975
  Prefactor  = 0.835561
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.204     FROM HESSE     STATUS=OK           374 CALLS     2589 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5810        .28938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10012E-03    54.938        .43956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9652        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.808        55.713        .23214E-03   -1.3976    
   6  Prefactor     .10000E-03    8.9203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .63921        22.965        .39333E-02   -1.5548    
  12  Prefactor     7.9128        3.5310        .89892E-04   -1.5145    
  13  Prefactor     6.9419        15.343        .15226E-03   -1.5181    
  14  Prefactor     29.561        16.906        .73697E-04   -1.4620    
  15  Prefactor     .10000E-03    22.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40483        .23962        .29566E-04   -1.5581    
  18  norm          16.457        9.5815        .98729E-04   -1.4896    
  19  norm          3.3677        4.1651        .17943E-03   -1.5341    
  20  Prefactor     .10000E-03    2.6254        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6885        13.240        .12422E-02   -1.5380    
  22  Normalizat    1.7698        .32124        .31592E-03   -.70456    
  23  Prefactor     .83556        .16938        .23448E-03   -.98431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70802e-08
Minuit parameter uncertainties:
  1  0.000293226
  2  4.19475e-06
  3  0.00513108
  4  7.04323e-06
  5  55.7515
  6  4.39511e-05
  7  0.000113064
  8  1.4049e-05
  9  3.95416e-06
  10  3.8347e-05
  11  7.66535
  12  3.53105
  13  15.3521
  14  16.9091
  15  5.90262e-05
  16  1.89305e-05
  17  0.239623
  18  9.58238
  19  4.16549
  20  4.25993e-06
  21  11.9363
  22  0.321625
  23  0.169484
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.913e+00  3.531e+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:  8.356e-01  1.695e-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.770e+00  3.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.99
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 8.55e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 7.33e-05 +/- 3.27e-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) = 6611.48952184
delta logL = 1.71483474548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6611.48585953
delta logL = 1.71849705439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5997       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.5160       1.0000          .0000       10.000    
     3 'Normalizat'    1.6592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86279       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=   6611.486     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5973        30.426        .39052E-02    .31742E-03
   2  Index1        1.5164        2.8350        .15466        .13858E-03
   3  Normalizat    1.6591        .20006        .73061E-01   -.13356E-04
   4  Prefactor     .86282        .66284E-01    .44529E-01   -.28360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59733
  Index1     = 1.51636
  Normalizat = 1.65913
  Prefactor  = 0.862819
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.486     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5973        3.2465        .69565E-04   -1.5194    
   2  Index1        1.5164        .46047        .56732E-02   -.77083    
   3  Normalizat    1.6591        .31956        .32325E-03   -.73400    
   4  Prefactor     .86282        .16921        .23066E-03   -.97453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6038e-11
Minuit parameter uncertainties:
  1  3.24664
  2  0.461745
  3  0.319952
  4  0.169316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763407': 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) = 6611.48585918
delta logL = 1.71849741074

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.597e+00  3.247e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.516e+00  4.617e-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:  8.628e-01  1.693e-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.659e+00  3.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.24
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.52 +/- 0.46
Photon Flux (Free Index): 1.98e-07 +/- 9.49e-08
Energy Flux (Free Index): 6.96e-05 +/- 2.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/763407/cmap_HighResolution_368409601_368668801_4FGL_J1231.1-1412_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.55e-08', energy_flux2='6.96e-05', photon_flux_error='3.81e-08', dlogl='1.72e+00', energy_flux='7.33e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-09-05 22:04:35.563451', photon_index_error2='0.46', photon_index2='1.52', ts='13.99', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.46e-05', EG='1.77', time_epoch_completed='1630904675.56', return_code='0', job_id='763407', GAL2='0.86', EG2='1.66', return_code2='0', energy_flux_error='3.27e-05', photon_flux_error2='9.49e-08', ts2='17.24', photon_index='0.63' WHERE bin_id='498' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 763407: <4FGL_J1231.1-1412_daily_bin498> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin498> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:32 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:52:08 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:52:08 2021
Terminated at Sun Sep  5 22:04:36 2021
Results reported at Sun Sep  5 22:04:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin498 187.798 -14.2014 368409601 368668801 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 :                                   624.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            844 sec.

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

