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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin562
RA = 187.798, Dec = -14.2014
tmin = 384998401, tmax = 385257601
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='764843', job_status='RUN', time_executed='2021-09-05 21:57:47.451937', time_epoch_executed='1630904267.45' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764843/ft1_4FGL_J1231.1-1412_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764843/ft1_4FGL_J1231.1-1412_daily_bin562.fits outfile=/scratch/kocevski/764843/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin562.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=384998401.0 tmax=385257601.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.56
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764843/ft1_filtered_4FGL_J1231.1-1412_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/764843/ltcube_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.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/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits
.....................!
real 14.03
user 13.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764843/ft1_filtered_4FGL_J1231.1-1412_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/764843/ltcube_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.fits outfile=/scratch/kocevski/764843/expmap_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.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/764843/ltcube_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.fits
.....................!
real 190.61
user 185.93
sys 4.12

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/764843/ft1_filtered_4FGL_J1231.1-1412_daily_bin562.fits scfile=/scratch/kocevski/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits outfile=/scratch/kocevski/764843/cmap_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764843/ft1_filtered_4FGL_J1231.1-1412_daily_bin562.fits scfile=/scratch/kocevski/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits outfile=/scratch/kocevski/764843/cmap_HighResolution_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764843/ft1_filtered_4FGL_J1231.1-1412_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/764843/ft2_4FGL_J1231.1-1412_daily_bin562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764843/Model_4FGL_J1231.1-1412_daily_bin562.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/764843/ft1_filtered_4FGL_J1231.1-1412_daily_bin562.fits.....................!
real 75.58
user 74.15
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1607       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17410E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.490       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.460       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.158       1.0000         .10000E-03   10000.    
    17 'norm      '    .62441       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7004       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4260       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36103E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1941       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91252       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=   10117.26     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2635 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65775        2.2408        .49406E-06   -.11786E-04
   2  Prefactor     10.573        11.155        .15769E-07    .77407E-05
   3  Prefactor     .10000E-03    15.238        .24560E-08** at limit **
   4  norm          3.1600        3.0692        .26758E-06    .16977E-03
   5  Prefactor     .10000E-03    12.413        .14287E-06** at limit **
   6  Prefactor     .10000E-03    2.9777       -.26178E-07** at limit **
   7  Prefactor     33.128        27.236        .10196E-06   -.11960E-04
   8  Prefactor     15.651        44.116       -.91149E-06    .46077E-04
   9  Prefactor     .10000E-03    23.502        .27540E-05** at limit **
  10  Prefactor     42.502        36.343       -.14647E-05    .12108E-03
  11  Prefactor     2.4025        2.2367       -.15353E-07   -.52962E-05
  12  Prefactor     10.460        2.2730        .56528E-08    .13861E-04
  13  Prefactor     .10000E-03    4.3701       -.13309E-06** at limit **
  14  Prefactor     .10000E-03    3.0722       -.35405E-07** at limit **
  15  Prefactor     .10000E-03    14.338        .54262E-07** at limit **
  16  Prefactor     38.148        42.757        .12781E-05   -.86905E-04
  17  norm          .62440        .20423        .44622E-08    .71251E-04
  18  norm          4.7002        6.1460        .24781E-05    .86273E-04
  19  norm          .10000E-03    4.6960       -.36102E-06** at limit **
  20  Prefactor     7.4266        4.7143       -.11827E-06   -.20417E-04
  21  Prefactor     .10000E-03    3.9863        .19188E-05** at limit **
  22  Normalizat    1.1941        .17720        .25248E-06   -.14023E-04
  23  Prefactor     .91252        .10283       -.41256E-06   -.20697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.657755
  Prefactor  = 10.5727
  Prefactor  = 0.0001
  norm       = 3.16002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1283
  Prefactor  = 15.6509
  Prefactor  = 0.000100004
  Prefactor  = 42.5019
  Prefactor  = 2.40252
  Prefactor  = 10.4604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.1476
  norm       = 0.6244
  norm       = 4.70015
  norm       = 0.0001
  Prefactor  = 7.42665
  Prefactor  = 0.000100001
  Normalizat = 1.19414
  Prefactor  = 0.912518
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.26     FROM HESSE     STATUS=OK           372 CALLS     3007 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65775        2.2027        .26513E-03   -1.5546    
   2  Prefactor     10.573        11.093        .12321E-03   -1.5058    
   3  Prefactor     .10000E-03    15.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1600        3.0381        .16217E-03   -1.5352    
   5  Prefactor     .10000E-03    12.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9801        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.128        27.216        .69618E-04   -1.4556    
   8  Prefactor     15.651        43.946        .10126E-03   -1.4917    
   9  Prefactor     .10000E-03    24.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.502        36.480        .61499E-04   -1.4403    
  11  Prefactor     2.4025        2.2457        .14092E-03   -1.5398    
  12  Prefactor     10.460        2.2730        .68542E-04   -1.5061    
  13  Prefactor     .10000E-03    4.4014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0920        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.148        42.720        .64884E-04   -1.4472    
  17  norm          .62440        .20336        .24922E-04   -1.5550    
  18  norm          4.7002        6.3612        .92804E-03   -1.5274    
  19  norm          .10000E-03    4.8343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4266        4.6976        .14718E-03   -1.5163    
  21  Prefactor     .10000E-03    8.3851        .35029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1941        .20991        .30578E-03   -.86784    
  23  Prefactor     .91252        .12189        .19925E-03   -.95705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93128e-10
Minuit parameter uncertainties:
  1  2.20301
  2  11.0952
  3  6.65192e-05
  4  3.03824
  5  2.24163e-05
  6  9.76648e-07
  7  27.2261
  8  44.037
  9  0.000611064
  10  36.4994
  11  2.24582
  12  2.27298
  13  8.11313e-07
  14  4.21711e-06
  15  1.09513e-05
  16  42.7542
  17  0.203365
  18  6.36214
  19  5.66744e-05
  20  4.69783
  21  0.00016552
  22  0.210058
  23  0.121923
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.046e+01  2.273e+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.125e-01  1.219e-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.194e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 82.80
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 2.46e-08
Energy Flux (Fixed Index): 9.70e-05 +/- 2.11e-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) = 10117.0893851
delta logL = 0.173325214519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10117.0827476
delta logL = 0.179962718335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.630       1.0000         .10000E-03   10000.    
     2 'Index1    '    .48222       1.0000          .0000       10.000    
     3 'Normalizat'    1.2025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91066       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=   10117.08     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.630        3.0958        .30722E-02   -.16479E-02
   2  Index1        .48222        .29345        .25192        .72752E-04
   3  Normalizat    1.2025        .17511        .68912E-01    .10320E-03
   4  Prefactor     .91066        .10104        .45141E-01   -.10786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6298
  Index1     = 0.482217
  Normalizat = 1.2025
  Prefactor  = 0.910656
 **********
 **   18 **HESSE 
 **********

 FCN=   10117.08     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.630        2.3221        .69657E-04   -1.5056    
   2  Index1        .48222        .24427        .99710E-02   -1.1280    
   3  Normalizat    1.2025        .20587        .30490E-03   -.86526    
   4  Prefactor     .91066        .11969        .19945E-03   -.95770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81767e-09
Minuit parameter uncertainties:
  1  2.32211
  2  0.244805
  3  0.206011
  4  0.119725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764843': 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) = 10117.0827476
delta logL = 0.179962719931

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.063e+01  2.322e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  4.822e-01  2.448e-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.107e-01  1.197e-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.202e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.16
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.48 +/- 0.24
Photon Flux (Free Index): 1.04e-07 +/- 2.68e-08
Energy Flux (Free Index): 1.05e-04 +/- 2.70e-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/764843/cmap_HighResolution_384998401_385257601_4FGL_J1231.1-1412_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='1.05e-04', photon_flux_error='2.46e-08', dlogl='1.80e-01', energy_flux='9.70e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-05 22:11:51.611524', photon_index_error2='0.24', photon_index2='0.48', ts='82.80', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.19', time_epoch_completed='1630905111.61', return_code='0', job_id='764843', GAL2='0.91', EG2='1.20', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='2.68e-08', ts2='83.16', photon_index='0.63' WHERE bin_id='562' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 764843: <4FGL_J1231.1-1412_daily_bin562> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin562> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:55:40 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:55:44 2021
Terminated at Sun Sep  5 22:11:52 2021
Results reported at Sun Sep  5 22:11:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin562 187.798 -14.2014 384998401 385257601 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 :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            972 sec.

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

