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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1306
RA = 187.798, Dec = -14.2014
tmin = 577843201, tmax = 578102401
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='768336', job_status='RUN', time_executed='2021-09-05 22:06:58.307431', time_epoch_executed='1630904818.31' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768336

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768336/ft1_4FGL_J1231.1-1412_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768336/ft2_4FGL_J1231.1-1412_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768336/ft1_4FGL_J1231.1-1412_daily_bin1306.fits outfile=/scratch/kocevski/768336/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1306.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=577843201.0 tmax=578102401.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.38
user 3.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768336/ft1_filtered_4FGL_J1231.1-1412_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/768336/ft2_4FGL_J1231.1-1412_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/768336/ltcube_577843201_578102401_4FGL_J1231.1-1412_daily_bin1306.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/768336/ft2_4FGL_J1231.1-1412_daily_bin1306.fits
.....................!
real 18.38
user 17.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768336/ft1_filtered_4FGL_J1231.1-1412_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/768336/ft2_4FGL_J1231.1-1412_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/768336/ltcube_577843201_578102401_4FGL_J1231.1-1412_daily_bin1306.fits outfile=/scratch/kocevski/768336/expmap_577843201_578102401_4FGL_J1231.1-1412_daily_bin1306.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/768336/ltcube_577843201_578102401_4FGL_J1231.1-1412_daily_bin1306.fits
.....................!
real 192.12
user 187.01
sys 4.45

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/768336/ft1_filtered_4FGL_J1231.1-1412_daily_bin1306.fits scfile=/scratch/kocevski/768336/ft2_4FGL_J1231.1-1412_daily_bin1306.fits outfile=/scratch/kocevski/768336/cmap_577843201_578102401_4FGL_J1231.1-1412_daily_bin1306.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.60
user 0.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/768336/ft1_filtered_4FGL_J1231.1-1412_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/768336/ft2_4FGL_J1231.1-1412_daily_bin1306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/768336/Model_4FGL_J1231.1-1412_daily_bin1306.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/768336/ft1_filtered_4FGL_J1231.1-1412_daily_bin1306.fits....................!
real 35.48
user 33.95
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5983       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.757       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .70775       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6301       1.0000         .10000E-03   10000.    
    18 'norm      '    18.657       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0644       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0742       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79862       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=   3168.469     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2523 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5947        8.4232        .28567E-05   -.29582E-04
   2  Prefactor     31.854        32.789       -.18117E-04    .18494E-04
   3  Prefactor     47.746        26.933        .30218E-05    .93601E-04
   4  norm          .10000E-03    2.7595        .13213E-06** at limit **
   5  Prefactor     .10000E-03    34.870        .12929E-04** at limit **
   6  Prefactor     30.651        29.441       -.15321E-04    .13371E-04
   7  Prefactor     .10000E-03    30.971       -.52979E-05** at limit **
   8  Prefactor     13.444        118.10       -.97596E-04    .44711E-05
   9  Prefactor     .10000E-03    13.878       -.87274E-06** at limit **
  10  Prefactor     .10000E-03    55.074        .29708E-05** at limit **
  11  Prefactor     .10000E-03    9.6654        .22165E-06** at limit **
  12  Prefactor     14.565        5.3169       -.55776E-06    .80656E-04
  13  Prefactor     .31083        20.602       -.25518E-05   -.10804E-03
  14  Prefactor     .10000E-03    10.344        .26088E-06** at limit **
  15  Prefactor     .10000E-03    50.271       -.98221E-05** at limit **
  16  Prefactor     .10000E-03    43.271       -.70160E-05** at limit **
  17  norm          1.6297        .53071       -.91847E-07    .92855E-03
  18  norm          18.657        13.813       -.79600E-06    .61467E-04
  19  norm          2.0633        5.2782       -.11045E-05   -.27355E-03
  20  Prefactor     .10000E-03    2.4500       -.24983E-06** at limit **
  21  Prefactor     6.0631        18.926       -.23244E-05   -.25151E-04
  22  Normalizat    1.2500        .34938        .99782E-05    .60248E-04
  23  Prefactor     .79904        .18917        .18597E-05    .30682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.59466
  Prefactor  = 31.8545
  Prefactor  = 47.7455
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.651
  Prefactor  = 0.0001
  Prefactor  = 13.4439
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.5651
  Prefactor  = 0.310826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62971
  norm       = 18.6571
  norm       = 2.0633
  Prefactor  = 0.0001
  Prefactor  = 6.06308
  Normalizat = 1.24998
  Prefactor  = 0.799044
 **********
 **   18 **HESSE 
 **********

 FCN=   3168.469     FROM HESSE     STATUS=OK           366 CALLS     2889 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5947        8.4073        .13670E-03   -1.5122    
   2  Prefactor     31.854        32.834        .70967E-04   -1.4579    
   3  Prefactor     47.746        26.930        .58024E-04   -1.4325    
   4  norm          .10000E-03    2.7639        .91234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.651        29.605        .72341E-04   -1.4600    
   7  Prefactor     .10000E-03    30.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.444        118.72        .10906E-03   -1.4974    
   9  Prefactor     .10000E-03    13.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.7336        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.565        5.3123        .75632E-04   -1.4944    
  13  Prefactor     .31083        439.63        .47815E-02   -1.5596    
  14  Prefactor     .10000E-03    10.415        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6297        .53207        .22500E-04   -1.5453    
  18  norm          18.657        13.818        .92727E-04   -1.4844    
  19  norm          2.0633        5.2600        .20037E-03   -1.5421    
  20  Prefactor     .10000E-03    2.4505        .86024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0631        18.937        .16291E-03   -1.5215    
  22  Normalizat    1.2500        .41590        .31731E-03   -.85072    
  23  Prefactor     .79904        .22439        .21793E-03   -.99764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54262e-09
Minuit parameter uncertainties:
  1  8.4085
  2  32.8523
  3  26.9373
  4  4.89484e-05
  5  0.000130271
  6  29.6196
  7  0.000139421
  8  80.1146
  9  0.000115205
  10  0.000494428
  11  3.09886e-05
  12  5.31246
  13  23.5508
  14  4.75084e-05
  15  4.50438e-05
  16  6.78439e-06
  17  0.532074
  18  13.82
  19  5.26122
  20  4.61257e-07
  21  18.9562
  22  0.417009
  23  0.224651
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.457e+01  5.312e+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.990e-01  2.247e-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.250e+00  4.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.05
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 5.74e-08
Energy Flux (Fixed Index): 1.35e-04 +/- 4.92e-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) = 3167.67009303
delta logL = 0.798725923905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3167.64961927
delta logL = 0.819199684757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.781       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1275       1.0000          .0000       10.000    
     3 'Normalizat'    1.1772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81658       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3167.650     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.781        5.1504        .64557E-04   -.10227E-02
   2  Index1        1.1275        .37885        .49284E-02   -.16269E-03
   3  Normalizat    1.1772        .39073        .32489E-03    .25230E-04
   4  Prefactor     .81654        .21956        .21537E-03    .63344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7809
  Index1     = 1.12752
  Normalizat = 1.17723
  Prefactor  = 0.816539
 **********
 **   18 **HESSE 
 **********

 FCN=   3167.650     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.781        5.0792        .12911E-04   -1.4993    
   2  Index1        1.1275        .37349        .19714E-03   -.88592    
   3  Normalizat    1.1772        .39089        .12995E-04   -.87309    
   4  Prefactor     .81654        .21971        .86148E-05   -.99122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14829e-10
Minuit parameter uncertainties:
  1  5.07939
  2  0.374366
  3  0.391868
  4  0.219943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768336': 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) = 3167.64961924
delta logL = 0.819199711146

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.278e+01  5.079e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.128e+00  3.744e-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:  8.165e-01  2.199e-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.177e+00  3.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.35
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.13 +/- 0.37
Photon Flux (Free Index): 2.27e-07 +/- 9.26e-08
Energy Flux (Free Index): 1.14e-04 +/- 4.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/768336/cmap_HighResolution_577843201_578102401_4FGL_J1231.1-1412_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='1.14e-04', photon_flux_error='5.74e-08', dlogl='8.19e-01', energy_flux='1.35e-04', photon_flux2='2.27e-07', job_status='DONE', time_completed='2021-09-05 22:15:28.049711', photon_index_error2='0.37', photon_index2='1.13', ts='24.05', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='4.11e-05', EG='1.25', time_epoch_completed='1630905328.05', return_code='0', job_id='768336', GAL2='0.82', EG2='1.18', return_code2='0', energy_flux_error='4.92e-05', photon_flux_error2='9.26e-08', ts2='25.35', photon_index='0.63' WHERE bin_id='1306' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:15:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 768336: <4FGL_J1231.1-1412_daily_bin1306> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1306> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 22:05:37 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:06:07 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:06:07 2021
Terminated at Sun Sep  5 22:15:28 2021
Results reported at Sun Sep  5 22:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1306 187.798 -14.2014 577843201 578102401 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 :                                   490.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            591 sec.

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

