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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin535
RA = 187.798, Dec = -14.2014
tmin = 378000001, tmax = 378259201
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='763458', job_status='RUN', time_executed='2021-09-05 21:54:49.557909', time_epoch_executed='1630904089.56' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763458

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763458/ft1_4FGL_J1231.1-1412_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763458/ft2_4FGL_J1231.1-1412_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763458/ft1_4FGL_J1231.1-1412_daily_bin535.fits outfile=/scratch/kocevski/763458/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin535.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=378000001.0 tmax=378259201.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.50
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763458/ft1_filtered_4FGL_J1231.1-1412_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/763458/ft2_4FGL_J1231.1-1412_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/763458/ltcube_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.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/763458/ft2_4FGL_J1231.1-1412_daily_bin535.fits
.....................!
real 14.35
user 13.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763458/ft1_filtered_4FGL_J1231.1-1412_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/763458/ft2_4FGL_J1231.1-1412_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/763458/ltcube_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.fits outfile=/scratch/kocevski/763458/expmap_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.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/763458/ltcube_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.fits
.....................!
real 193.18
user 187.83
sys 4.79

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/763458/ft1_filtered_4FGL_J1231.1-1412_daily_bin535.fits scfile=/scratch/kocevski/763458/ft2_4FGL_J1231.1-1412_daily_bin535.fits outfile=/scratch/kocevski/763458/cmap_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.798 yref=-14.2014 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763458/ft1_filtered_4FGL_J1231.1-1412_daily_bin535.fits scfile=/scratch/kocevski/763458/ft2_4FGL_J1231.1-1412_daily_bin535.fits outfile=/scratch/kocevski/763458/cmap_HighResolution_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.749       1.0000         .10000E-03   10000.    
     4 'norm      '    .10963E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.298       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .61244       1.0000         .10000E-03   10000.    
    18 'norm      '    8.1560       1.0000         .10000E-03   10000.    
    19 'norm      '    9.6118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8081       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .61882       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=   6479.385     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2168 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2747       -.71960E-07** at limit **
   2  Prefactor     .10000E-03    12.604       -.22009E-05** at limit **
   3  Prefactor     12.752        13.176        .42053E-06   -.28626E-04
   4  norm          .10000E-03    3.9620       -.92058E-09** at limit **
   5  Prefactor     .10000E-03    40.743       -.31494E-05** at limit **
   6  Prefactor     .10000E-03    9.5079       -.66437E-06** at limit **
   7  Prefactor     23.886        31.474        .37728E-05    .92961E-05
   8  Prefactor     13.646        35.180       -.56236E-05   -.16465E-04
   9  Prefactor     .10000E-03    21.462        .69668E-05** at limit **
  10  Prefactor     .10000E-03    108.35       -.12434E-05** at limit **
  11  Prefactor     .10000E-03    2.5274        .57272E-07** at limit **
  12  Prefactor     6.9670        2.6278        .62054E-08    .17282E-04
  13  Prefactor     .10000E-03    11.315        .20917E-05** at limit **
  14  Prefactor     18.298        11.506       -.46512E-07   -.20830E-04
  15  Prefactor     .10000E-03    23.408       -.74235E-05** at limit **
  16  Prefactor     .10000E-03    42.027        .46124E-05** at limit **
  17  norm          .61241        .26057        .25644E-08   -.93727E-04
  18  norm          8.1560        7.0841       -.17402E-07   -.42724E-04
  19  norm          9.6113        8.4786        .64389E-07   -.16192E-03
  20  Prefactor     4.8039        7.8350       -.31813E-06   -.28446E-03
  21  Prefactor     .10000E-03    8.5102        .14732E-06** at limit **
  22  Normalizat    1.8080        .24367       -.18983E-06    .65070E-05
  23  Prefactor     .61885        .13167        .86085E-07   -.55427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8858
  Prefactor  = 13.6464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.96699
  Prefactor  = 0.0001
  Prefactor  = 18.2983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.612413
  norm       = 8.15602
  norm       = 9.6113
  Prefactor  = 4.80388
  Prefactor  = 0.0001
  Normalizat = 1.80804
  Prefactor  = 0.618848
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.385     FROM HESSE     STATUS=OK           366 CALLS     2534 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3169        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.752        13.096        .11218E-03   -1.4994    
   4  norm          .10000E-03    4.0380        .31108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.886        31.482        .81973E-04   -1.4730    
   8  Prefactor     13.646        35.260        .10840E-03   -1.4969    
   9  Prefactor     .10000E-03    21.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    108.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5459        .12490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9670        2.6273        .77529E-04   -1.5180    
  13  Prefactor     .10000E-03    11.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.298        11.525        .93630E-04   -1.4852    
  15  Prefactor     .10000E-03    23.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .61241        .26033        .25552E-04   -1.5551    
  18  norm          8.1560        7.0836        .14039E-03   -1.5137    
  19  norm          9.6113        8.4414        .12926E-03   -1.5088    
  20  Prefactor     4.8039        7.8262        .18355E-03   -1.5270    
  21  Prefactor     .10000E-03    8.5542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8080        .28891        .27879E-03   -.69454    
  23  Prefactor     .61885        .15536        .24162E-03   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56631e-11
Minuit parameter uncertainties:
  1  1.73418e-06
  2  2.84682e-06
  3  13.0985
  4  6.0728e-07
  5  7.14891e-05
  6  1.35665e-05
  7  31.5036
  8  35.3134
  9  2.65457e-05
  10  0.00013419
  11  1.11015e-07
  12  2.62732
  13  3.38666e-06
  14  11.5264
  15  7.37778e-06
  16  4.91392e-06
  17  0.260326
  18  7.08432
  19  8.44248
  20  7.8279
  21  6.78086e-07
  22  0.289187
  23  0.155471
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.967e+00  2.627e+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:  6.188e-01  1.555e-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.808e+00  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.63
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 7.53e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 6.46e-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) = 6479.27487465
delta logL = 0.109831024068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6479.26251215
delta logL = 0.122193522672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9343       1.0000         .10000E-03   10000.    
     2 'Index1    '    .85969       1.0000          .0000       10.000    
     3 'Normalizat'    1.7947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62061       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6479.263     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9343        2.5663        .74304E-04    .53704E-04
   2  Index1        .85966        .45040        .10274E-01    .27244E-03
   3  Normalizat    1.7947        .28157        .27945E-03   -.82333E-04
   4  Prefactor     .62062        .15256        .24115E-03    .45023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.93433
  Index1     = 0.859663
  Normalizat = 1.79467
  Prefactor  = 0.620615
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.263     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9343        2.5549        .29721E-05   -1.5181    
   2  Index1        .85966        .44832        .20548E-02   -.97565    
   3  Normalizat    1.7947        .28173        .55890E-04   -.69803    
   4  Prefactor     .62062        .15268        .96459E-05   -1.0673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48075e-11
Minuit parameter uncertainties:
  1  2.55498
  2  0.450254
  3  0.281989
  4  0.152785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763458': 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) = 6479.26251214
delta logL = 0.122193525349

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.934e+00  2.555e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  8.597e-01  4.503e-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:  6.206e-01  1.528e-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.795e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.83
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.86 +/- 0.45
Photon Flux (Free Index): 9.18e-08 +/- 4.77e-08
Energy Flux (Free Index): 6.10e-05 +/- 2.31e-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/763458/cmap_HighResolution_378000001_378259201_4FGL_J1231.1-1412_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.53e-08', energy_flux2='6.10e-05', photon_flux_error='2.84e-08', dlogl='1.22e-01', energy_flux='6.46e-05', photon_flux2='9.18e-08', job_status='DONE', time_completed='2021-09-05 22:05:04.001272', photon_index_error2='0.45', photon_index2='0.86', ts='31.63', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='1.81', time_epoch_completed='1630904704.0', return_code='0', job_id='763458', GAL2='0.62', EG2='1.79', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='4.77e-08', ts2='31.83', photon_index='0.63' WHERE bin_id='535' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 763458: <4FGL_J1231.1-1412_daily_bin535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin535 187.798 -14.2014 378000001 378259201 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 :                                   612.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            867 sec.

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

