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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1274
RA = 187.798, Dec = -14.2014
tmin = 569548801, tmax = 569808001
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='768289', job_status='RUN', time_executed='2021-09-05 22:07:09.194250', time_epoch_executed='1630904829.19' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768289

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768289/ft1_4FGL_J1231.1-1412_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768289/ft1_4FGL_J1231.1-1412_daily_bin1274.fits outfile=/scratch/kocevski/768289/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1274.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=569548801.0 tmax=569808001.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.04
user 2.86
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768289/ft1_filtered_4FGL_J1231.1-1412_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/768289/ltcube_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.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/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits
.....................!
real 17.25
user 16.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768289/ft1_filtered_4FGL_J1231.1-1412_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/768289/ltcube_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.fits outfile=/scratch/kocevski/768289/expmap_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.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/768289/ltcube_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.fits
.....................!
real 157.21
user 152.59
sys 3.89

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/768289/ft1_filtered_4FGL_J1231.1-1412_daily_bin1274.fits scfile=/scratch/kocevski/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits outfile=/scratch/kocevski/768289/cmap_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.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.52
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768289/ft1_filtered_4FGL_J1231.1-1412_daily_bin1274.fits scfile=/scratch/kocevski/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits outfile=/scratch/kocevski/768289/cmap_HighResolution_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.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.52
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/768289/ft1_filtered_4FGL_J1231.1-1412_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/768289/ft2_4FGL_J1231.1-1412_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/768289/Model_4FGL_J1231.1-1412_daily_bin1274.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/768289/ft1_filtered_4FGL_J1231.1-1412_daily_bin1274.fits.....................!
real 58.03
user 56.18
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.499       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.765       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12554E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    103.37       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.591       1.0000         .10000E-03   10000.    
    17 'norm      '    .25877       1.0000         .10000E-03   10000.    
    18 'norm      '    .48405       1.0000         .10000E-03   10000.    
    19 'norm      '    11.184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7493       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78114       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=   8525.655     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2627 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0051        4.4081        .65686E-07    .29336E-04
   2  Prefactor     71.493        25.875       -.56425E-07   -.83536E-04
   3  Prefactor     25.751        17.876       -.11244E-05   -.24860E-03
   4  norm          1.0148        4.4692        .24693E-05   -.82960E-04
   5  Prefactor     24.473        36.022       -.89337E-07   -.26572E-04
   6  Prefactor     10.913        13.740        .73163E-07   -.34133E-05
   7  Prefactor     .10000E-03    12.575       -.64139E-07** at limit **
   8  Prefactor     38.158        64.477       -.93264E-06   -.95427E-04
   9  Prefactor     7.2183        24.109        .19125E-06   -.71737E-04
  10  Prefactor     .10000E-03    37.448       -.83817E-06** at limit **
  11  Prefactor     .10000E-03    1.6155        .26363E-07** at limit **
  12  Prefactor     7.4249        2.4675        .30635E-08    .15423E-04
  13  Prefactor     8.1156        12.139        .97628E-07    .61269E-05
  14  Prefactor     8.7311        9.3763        .73482E-07   -.15076E-05
  15  Prefactor     103.36        47.208       -.12818E-06   -.41779E-04
  16  Prefactor     53.572        76.675       -.60060E-06   -.23120E-04
  17  norm          .25879        .19125        .18600E-07    .85903E-05
  18  norm          .40810        6.3487       -.50603E-06    .25074E-03
  19  norm          11.167        7.5711        .27621E-07    .10963E-03
  20  Prefactor     .10000E-03    7.8887        .58954E-06** at limit **
  21  Prefactor     .10000E-03    3.5646        .30983E-07** at limit **
  22  Normalizat    1.7492        .23650        .21453E-06   -.15658E-04
  23  Prefactor     .78130        .12836       -.53438E-06    .51571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00508
  Prefactor  = 71.4932
  Prefactor  = 25.7508
  norm       = 1.01483
  Prefactor  = 24.4726
  Prefactor  = 10.9133
  Prefactor  = 0.0001
  Prefactor  = 38.1581
  Prefactor  = 7.21831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.4249
  Prefactor  = 8.1156
  Prefactor  = 8.73108
  Prefactor  = 103.361
  Prefactor  = 53.5725
  norm       = 0.258791
  norm       = 0.408099
  norm       = 11.1672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.74921
  Prefactor  = 0.781301
 **********
 **   18 **HESSE 
 **********

 FCN=   8525.655     FROM HESSE     STATUS=OK           376 CALLS     3003 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0051        4.4034        .14369E-03   -1.5179    
   2  Prefactor     71.493        25.923        .47477E-04   -1.4015    
   3  Prefactor     25.751        17.876        .78920E-04   -1.4693    
   4  norm          1.0148        4.5144        .32586E-03   -1.5506    
   5  Prefactor     24.473        36.035        .80966E-04   -1.4718    
   6  Prefactor     10.913        13.754        .12127E-03   -1.5047    
   7  Prefactor     .10000E-03    12.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.158        64.472        .64870E-04   -1.4472    
   9  Prefactor     7.2183        24.024        .14913E-03   -1.5171    
  10  Prefactor     .10000E-03    37.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6193        .11458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4249        2.4680        .80953E-04   -1.5163    
  13  Prefactor     8.1156        12.138        .14072E-03   -1.5138    
  14  Prefactor     8.7311        9.3934        .13563E-03   -1.5117    
  15  Prefactor     103.36        47.193        .19774E-03   -1.3671    
  16  Prefactor     53.572        76.884        .54790E-04   -1.4243    
  17  norm          .25879        .18227        .32622E-03   -1.5606    
  18  norm          .40810        40.310        .43047E-02   -1.5580    
  19  norm          11.167        7.5349        .11980E-03   -1.5039    
  20  Prefactor     .10000E-03    8.0994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5697        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7492        .27819        .31364E-03   -.70997    
  23  Prefactor     .78130        .15088        .24240E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76995e-09
Minuit parameter uncertainties:
  1  4.40362
  2  25.927
  3  17.8798
  4  4.28116
  5  36.0669
  6  13.7582
  7  2.73688e-06
  8  64.5904
  9  24.0563
  10  0.000137598
  11  1.97328e-07
  12  2.468
  13  12.1421
  14  9.39501
  15  47.2106
  16  77.0268
  17  0.18227
  18  8.11645
  19  7.53557
  20  1.52366e-05
  21  2.37189e-07
  22  0.278441
  23  0.150962
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.425e+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:  7.813e-01  1.510e-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.749e+00  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.89
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 8.02e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 6.88e-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) = 8525.61389651
delta logL = 0.0413827819903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8525.61064254
delta logL = 0.0446367565364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5075       1.0000         .10000E-03   10000.    
     2 'Index1    '    .74207       1.0000          .0000       10.000    
     3 'Normalizat'    1.7439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78069       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=   8525.611     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5080        40.246        .36592E-02   -.90685E-04
   2  Index1        .74225        5.9783        .28597        .78604E-04
   3  Normalizat    1.7439        .36917        .70972E-01    .11034E-04
   4  Prefactor     .78070        .10709        .43465E-01    .15274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.50799
  Index1     = 0.742246
  Normalizat = 1.74391
  Prefactor  = 0.7807
 **********
 **   18 **HESSE 
 **********

 FCN=   8525.611     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5080        2.4417        .79772E-04   -1.5160    
   2  Index1        .74225        .37242        .10100E-01   -1.0189    
   3  Normalizat    1.7439        .26791        .31397E-03   -.71137    
   4  Prefactor     .78070        .14659        .24241E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36752e-11
Minuit parameter uncertainties:
  1  2.44173
  2  0.373687
  3  0.26813
  4  0.146666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768289': 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) = 8525.61064229
delta logL = 0.0446370052487

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.508e+00  2.442e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.422e-01  3.737e-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:  7.807e-01  1.467e-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.744e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.89
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.74 +/- 0.37
Photon Flux (Free Index): 8.91e-08 +/- 4.15e-08
Energy Flux (Free Index): 6.73e-05 +/- 2.25e-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/768289/cmap_HighResolution_569548801_569808001_4FGL_J1231.1-1412_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.02e-08', energy_flux2='6.73e-05', photon_flux_error='2.67e-08', dlogl='4.46e-02', energy_flux='6.88e-05', photon_flux2='8.91e-08', job_status='DONE', time_completed='2021-09-05 22:18:33.319219', photon_index_error2='0.37', photon_index2='0.74', ts='42.89', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.75', time_epoch_completed='1630905513.32', return_code='0', job_id='768289', GAL2='0.78', EG2='1.74', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='4.15e-08', ts2='42.89', photon_index='0.63' WHERE bin_id='1274' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:18:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 768289: <4FGL_J1231.1-1412_daily_bin1274> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1274> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 22:05:33 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:05:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:05:42 2021
Terminated at Sun Sep  5 22:18:34 2021
Results reported at Sun Sep  5 22:18:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1274 187.798 -14.2014 569548801 569808001 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 :                                   625.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            781 sec.

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

