/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 228 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1231.1-1412_daily_bin217
RA = 187.798, Dec = -14.2014
tmin = 295574401, tmax = 295833601
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='761885', job_status='RUN', time_executed='2021-09-05 21:50:05.462459', time_epoch_executed='1630903805.46' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761885/ft1_4FGL_J1231.1-1412_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761885/ft2_4FGL_J1231.1-1412_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761885/ft1_4FGL_J1231.1-1412_daily_bin217.fits outfile=/scratch/kocevski/761885/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin217.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=295574401.0 tmax=295833601.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 2.38
user 2.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761885/ft1_filtered_4FGL_J1231.1-1412_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/761885/ft2_4FGL_J1231.1-1412_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/761885/ltcube_295574401_295833601_4FGL_J1231.1-1412_daily_bin217.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/761885/ft2_4FGL_J1231.1-1412_daily_bin217.fits
.....................!
real 15.97
user 15.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761885/ft1_filtered_4FGL_J1231.1-1412_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/761885/ft2_4FGL_J1231.1-1412_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/761885/ltcube_295574401_295833601_4FGL_J1231.1-1412_daily_bin217.fits outfile=/scratch/kocevski/761885/expmap_295574401_295833601_4FGL_J1231.1-1412_daily_bin217.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/761885/ltcube_295574401_295833601_4FGL_J1231.1-1412_daily_bin217.fits
.....................!
real 193.33
user 186.60
sys 4.92

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761885/ft1_filtered_4FGL_J1231.1-1412_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/761885/ft2_4FGL_J1231.1-1412_daily_bin217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761885/Model_4FGL_J1231.1-1412_daily_bin217.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/761885/ft1_filtered_4FGL_J1231.1-1412_daily_bin217.fits.....................!
real 61.28
user 59.80
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20868E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.627       1.0000         .10000E-03   10000.    
     4 'norm      '    .19109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11948E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8313       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2608       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3493       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .63183       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7340       1.0000         .10000E-03   10000.    
    19 'norm      '    7.5859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21108E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99865       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=   7309.237     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2221 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6405       -.75988E-07** at limit **
   2  Prefactor     .10000E-03    38.563        .45450E-05** at limit **
   3  Prefactor     42.610        18.901       -.85390E-06   -.48315E-04
   4  norm          .10000E-03    6.6976        .52337E-06** at limit **
   5  Prefactor     .10000E-03    10.613       -.27832E-06** at limit **
   6  Prefactor     .10000E-03    4.3392       -.19970E-06** at limit **
   7  Prefactor     .10000E-03    14.363       -.64475E-06** at limit **
   8  Prefactor     .10000E-03    21.563        .25423E-07** at limit **
   9  Prefactor     3.7292        13.772        .51876E-06    .15315E-04
  10  Prefactor     .10000E-03    35.458       -.42534E-05** at limit **
  11  Prefactor     13.233        7.5268       -.55580E-07   -.90280E-05
  12  Prefactor     5.8315        2.4652        .21072E-07   -.58513E-05
  13  Prefactor     6.2588        10.715       -.61251E-07   -.12342E-05
  14  Prefactor     1.3423        8.6473        .17160E-06   -.54938E-04
  15  Prefactor     .10000E-03    14.498        .47954E-06** at limit **
  16  Prefactor     .10000E-03    55.127       -.26057E-05** at limit **
  17  norm          .63184        .23381        .15081E-07   -.98855E-04
  18  norm          1.7348        5.0158       -.17780E-06   -.91469E-04
  19  norm          7.5837        5.5549        .10475E-05    .34831E-04
  20  Prefactor     .10000E-03    4.3720       -.25348E-06** at limit **
  21  Prefactor     .10004E-03    8.2886        .70576E-06** at limit **
  22  Normalizat    1.3335        .23910       -.14451E-06   -.59803E-04
  23  Prefactor     .99865        .13302        .92448E-09   -.82462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72922
  Prefactor  = 0.0001
  Prefactor  = 13.2334
  Prefactor  = 5.83154
  Prefactor  = 6.25875
  Prefactor  = 1.34231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.631836
  norm       = 1.73483
  norm       = 7.58374
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Normalizat = 1.33346
  Prefactor  = 0.998655
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.237     FROM HESSE     STATUS=OK           374 CALLS     2595 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5770        .21224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.362        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.610        18.835        .61401E-04   -1.4402    
   4  norm          .10000E-03    6.9380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3489        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7292        13.897        .10415E-02   -1.5322    
  10  Prefactor     .10000E-03    35.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.233        7.5319        .11012E-03   -1.4980    
  12  Prefactor     5.8315        2.4677        .82569E-04   -1.5225    
  13  Prefactor     6.2588        10.710        .16043E-03   -1.5208    
  14  Prefactor     1.3423        19.145        .18837E-02   -1.5476    
  15  Prefactor     .10000E-03    14.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .63184        .23418        .24192E-04   -1.5549    
  18  norm          1.7348        6.8304        .15937E-02   -1.5445    
  19  norm          7.5837        5.5680        .14560E-03   -1.5157    
  20  Prefactor     .10000E-03    4.4367        .17482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    54.523        .47066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3335        .28782        .33188E-03   -.82573    
  23  Prefactor     .99865        .15995        .21121E-03   -.92774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34618e-10
Minuit parameter uncertainties:
  1  4.38649e-05
  2  0.000130135
  3  18.8375
  4  5.94798e-05
  5  3.4164e-07
  6  3.55033e-07
  7  7.43336e-07
  8  8.64339e-06
  9  13.9092
  10  3.00851e-06
  11  7.53246
  12  2.46771
  13  10.7131
  14  10.1423
  15  9.83365e-07
  16  0.000100477
  17  0.234178
  18  6.83344
  19  5.56835
  20  2.95278e-05
  21  0.00308471
  22  0.288167
  23  0.160023
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.832e+00  2.468e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.283e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.987e-01  1.600e-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.333e+00  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.80
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 6.30e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 5.41e-05 +/- 2.29e-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) = 7309.14267148
delta logL = 0.0941744389665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7309.13794183
delta logL = 0.0989040863096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6069       1.0000         .10000E-03   10000.    
     2 'Index1    '    .40515       1.0000          .0000       10.000    
     3 'Normalizat'    1.3408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99810       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=   7309.138     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      197 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6069        3.0121        .42414E-02   -.18599E-03
   2  Index1        .40515        .55313        .38326        .10666E-03
   3  Normalizat    1.3408        .23858        .74834E-01   -.54073E-04
   4  Prefactor     .99810        .13229        .46243E-01    .96365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60687
  Index1     = 0.405146
  Normalizat = 1.34083
  Prefactor  = 0.9981
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.138     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6069        2.4647        .82368E-04   -1.5234    
   2  Index1        .40515        .49899        .17994E-01   -1.1655    
   3  Normalizat    1.3408        .27973        .33117E-03   -.82356    
   4  Prefactor     .99810        .15796        .21132E-03   -.92793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95565e-10
Minuit parameter uncertainties:
  1  2.46471
  2  0.504472
  3  0.280052
  4  0.158037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761885': 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) = 7309.13794183
delta logL = 0.0989040863351

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.607e+00  2.465e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  4.051e-01  5.045e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.981e-01  1.580e-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.341e+00  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.08
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.41 +/- 0.50
Photon Flux (Free Index): 5.24e-08 +/- 3.04e-08
Energy Flux (Free Index): 5.78e-05 +/- 2.59e-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/761885/cmap_HighResolution_295574401_295833601_4FGL_J1231.1-1412_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.30e-08', energy_flux2='5.78e-05', photon_flux_error='2.67e-08', dlogl='9.89e-02', energy_flux='5.41e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-05 22:00:53.741102', photon_index_error2='0.50', photon_index2='0.41', ts='27.80', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='1.33', time_epoch_completed='1630904453.74', return_code='0', job_id='761885', GAL2='1.00', EG2='1.34', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='3.04e-08', ts2='28.08', photon_index='0.63' WHERE bin_id='217' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:00:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 761885: <4FGL_J1231.1-1412_daily_bin217> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin217> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:45:44 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:46: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:46:05 2021
Terminated at Sun Sep  5 22:00:54 2021
Results reported at Sun Sep  5 22:00:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin217 187.798 -14.2014 295574401 295833601 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 :                                   644.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            910 sec.

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

