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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin644
RA = 187.798, Dec = -14.2014
tmin = 406252801, tmax = 406512001
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='764971', job_status='RUN', time_executed='2021-09-05 21:59:03.883509', time_epoch_executed='1630904343.88' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764971

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764971/ft1_4FGL_J1231.1-1412_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764971/ft2_4FGL_J1231.1-1412_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764971/ft1_4FGL_J1231.1-1412_daily_bin644.fits outfile=/scratch/kocevski/764971/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin644.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=406252801.0 tmax=406512001.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.89
user 3.66
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764971/ft1_filtered_4FGL_J1231.1-1412_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/764971/ft2_4FGL_J1231.1-1412_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/764971/ltcube_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.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/764971/ft2_4FGL_J1231.1-1412_daily_bin644.fits
.....................!
real 16.45
user 15.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764971/ft1_filtered_4FGL_J1231.1-1412_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/764971/ft2_4FGL_J1231.1-1412_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/764971/ltcube_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.fits outfile=/scratch/kocevski/764971/expmap_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.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/764971/ltcube_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.fits
.....................!
real 193.06
user 186.51
sys 5.40

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/764971/ft1_filtered_4FGL_J1231.1-1412_daily_bin644.fits scfile=/scratch/kocevski/764971/ft2_4FGL_J1231.1-1412_daily_bin644.fits outfile=/scratch/kocevski/764971/cmap_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764971/ft1_filtered_4FGL_J1231.1-1412_daily_bin644.fits scfile=/scratch/kocevski/764971/ft2_4FGL_J1231.1-1412_daily_bin644.fits outfile=/scratch/kocevski/764971/cmap_HighResolution_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3470       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .60808       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.5172       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.8291       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68906       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=   6741.386     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2591 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54743        2.6461        .57700E-06    .36532E-04
   2  Prefactor     .10000E-03    5.7643       -.32761E-07** at limit **
   3  Prefactor     .10000E-03    7.9789        .22011E-06** at limit **
   4  norm          3.5253        3.8837        .61081E-06    .30238E-03
   5  Prefactor     .10000E-03    13.495       -.69086E-06** at limit **
   6  Prefactor     .10000E-03    4.7657       -.13699E-06** at limit **
   7  Prefactor     22.538        32.912        .15924E-05   -.10428E-04
   8  Prefactor     .64575        60.126       -.72239E-05    .15637E-03
   9  Prefactor     .10000E-03    12.611        .47020E-06** at limit **
  10  Prefactor     .10000E-03    35.174       -.16718E-06** at limit **
  11  Prefactor     .10000E-03    2.0360        .27413E-07** at limit **
  12  Prefactor     5.4450        2.2551       -.54490E-07    .23856E-05
  13  Prefactor     25.928        17.219       -.11015E-05    .93238E-04
  14  Prefactor     3.3486        10.318        .54246E-05    .21227E-03
  15  Prefactor     .10000E-03    18.140        .13771E-06** at limit **
  16  Prefactor     .10000E-03    95.117       -.80001E-06** at limit **
  17  norm          .60810        .26853        .11821E-07    .16794E-04
  18  norm          .10000E-03    6.8655        .25941E-07** at limit **
  19  norm          7.5216        6.5812        .21208E-06   -.36381E-05
  20  Prefactor     .10000E-03    3.8326        .80861E-06** at limit **
  21  Prefactor     .10000E-03    10.060       -.12286E-06** at limit **
  22  Normalizat    1.8291        .24488       -.10918E-05    .10101E-03
  23  Prefactor     .68909        .13063        .25604E-06    .80620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.547431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5384
  Prefactor  = 0.64575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44501
  Prefactor  = 25.9284
  Prefactor  = 3.34862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.608096
  norm       = 0.0001
  norm       = 7.52159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.82912
  Prefactor  = 0.689093
 **********
 **   18 **HESSE 
 **********

 FCN=   6741.386     FROM HESSE     STATUS=OK           376 CALLS     2967 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54743        2.6410        .25876E-03   -1.5560    
   2  Prefactor     .10000E-03    5.7707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5253        3.8719        .81158E-03   -1.5332    
   5  Prefactor     .10000E-03    13.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7745        .17508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.538        32.960        .84407E-04   -1.4758    
   8  Prefactor     .64575        49.183        .16193       -1.5547    
   9  Prefactor     .10000E-03    12.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0455        .11439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4450        2.2555        .76957E-04   -1.5241    
  13  Prefactor     25.928        17.231        .78711E-04   -1.4689    
  14  Prefactor     3.3486        10.459        .11061E-02   -1.5342    
  15  Prefactor     .10000E-03    18.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    95.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .60810        .26707        .27061E-04   -1.5552    
  18  norm          .10000E-03    6.9523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.5216        6.1758        .14627E-03   -1.5159    
  20  Prefactor     .10000E-03    7.8183        .28907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.8291        .28579        .28887E-03   -.68906    
  23  Prefactor     .68909        .15265        .23755E-03   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55027e-09
Minuit parameter uncertainties:
  1  2.40475
  2  2.97186e-06
  3  2.07655e-06
  4  3.8722
  5  2.47632e-05
  6  1.31049e-05
  7  32.9864
  8  11.28
  9  1.81407e-06
  10  2.5579e-05
  11  1.18311e-06
  12  2.25557
  13  17.2342
  14  10.4643
  15  1.13002e-05
  16  0.00018186
  17  0.267073
  18  5.23923e-06
  19  6.17628
  20  2.79593e-05
  21  3.98432e-06
  22  0.286055
  23  0.152744
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.445e+00  2.256e+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.891e-01  1.527e-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.829e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.86
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 5.05e-05 +/- 2.09e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6741.20906021
delta logL = 0.177142878495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6741.19422657
delta logL = 0.191976519395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0329       1.0000         .10000E-03   10000.    
     2 'Index1    '    .28110       1.0000          .0000       10.000    
     3 'Normalizat'    1.8396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68896       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=   6741.194     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      195 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0329        2.1513        .44810E-02   -.48130E-02
   2  Index1        .28110        .48977        .36507        .35188E-04
   3  Normalizat    1.8397        .23953        .65182E-01    .48540E-05
   4  Prefactor     .68893        .12871        .42254E-01    .18853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0329
  Index1     = 0.281102
  Normalizat = 1.83967
  Prefactor  = 0.688931
 **********
 **   18 **HESSE 
 **********

 FCN=   6741.194     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0329        2.3896        .76294E-04   -1.5259    
   2  Index1        .28110        .55635        .23587E-01   -1.2339    
   3  Normalizat    1.8397        .27848        .28827E-03   -.68633    
   4  Prefactor     .68893        .15062        .23766E-03   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91627e-09
Minuit parameter uncertainties:
  1  2.38967
  2  0.567431
  3  0.278719
  4  0.150711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764971': 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) = 6741.19422655
delta logL = 0.191976533684

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.033e+00  2.390e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  2.811e-01  5.674e-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.889e-01  1.507e-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.840e+00  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.23
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.28 +/- 0.57
Photon Flux (Free Index): 4.45e-08 +/- 2.69e-08
Energy Flux (Free Index): 5.62e-05 +/- 2.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/764971/cmap_HighResolution_406252801_406512001_4FGL_J1231.1-1412_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='5.62e-05', photon_flux_error='2.44e-08', dlogl='1.92e-01', energy_flux='5.05e-05', photon_flux2='4.45e-08', job_status='DONE', time_completed='2021-09-05 22:10:05.217217', photon_index_error2='0.57', photon_index2='0.28', ts='26.86', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='1.83', time_epoch_completed='1630905005.22', return_code='0', job_id='764971', GAL2='0.69', EG2='1.84', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='2.69e-08', ts2='27.23', photon_index='0.63' WHERE bin_id='644' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 764971: <4FGL_J1231.1-1412_daily_bin644> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin644 187.798 -14.2014 406252801 406512001 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 :                                   658.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            854 sec.

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

