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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin305
RA = 187.798, Dec = -14.2014
tmin = 318384001, tmax = 318643201
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='762053', job_status='RUN', time_executed='2021-09-05 21:50:27.754155', time_epoch_executed='1630903827.75' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/762053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/762053/ft1_4FGL_J1231.1-1412_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/762053/ft2_4FGL_J1231.1-1412_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/762053/ft1_4FGL_J1231.1-1412_daily_bin305.fits outfile=/scratch/kocevski/762053/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin305.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=318384001.0 tmax=318643201.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.33
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/762053/ft1_filtered_4FGL_J1231.1-1412_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/762053/ft2_4FGL_J1231.1-1412_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/762053/ltcube_318384001_318643201_4FGL_J1231.1-1412_daily_bin305.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/762053/ft2_4FGL_J1231.1-1412_daily_bin305.fits
.....................!
real 15.54
user 15.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/762053/ft1_filtered_4FGL_J1231.1-1412_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/762053/ft2_4FGL_J1231.1-1412_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/762053/ltcube_318384001_318643201_4FGL_J1231.1-1412_daily_bin305.fits outfile=/scratch/kocevski/762053/expmap_318384001_318643201_4FGL_J1231.1-1412_daily_bin305.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/762053/ltcube_318384001_318643201_4FGL_J1231.1-1412_daily_bin305.fits
.....................!
real 193.15
user 187.04
sys 5.41

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/762053/ft1_filtered_4FGL_J1231.1-1412_daily_bin305.fits scfile=/scratch/kocevski/762053/ft2_4FGL_J1231.1-1412_daily_bin305.fits outfile=/scratch/kocevski/762053/cmap_318384001_318643201_4FGL_J1231.1-1412_daily_bin305.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/762053/ft1_filtered_4FGL_J1231.1-1412_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/762053/ft2_4FGL_J1231.1-1412_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/762053/Model_4FGL_J1231.1-1412_daily_bin305.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/762053/ft1_filtered_4FGL_J1231.1-1412_daily_bin305.fits.....................!
real 52.70
user 50.51
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.741       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6123       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.481       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2536       1.0000         .10000E-03   10000.    
    18 'norm      '    7.9065       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1678       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0122       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1320       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=   6100.652     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2989 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0224       -.25941E-07** at limit **
   2  Prefactor     .10000E-03    10.510        .56505E-06** at limit **
   3  Prefactor     19.750        38.073        .71500E-05   -.29944E-04
   4  norm          5.9717        12.305       -.48359E-05   -.20451E-03
   5  Prefactor     34.307        35.524        .14193E-05   -.12969E-04
   6  Prefactor     1.4124        22.960       -.26070E-05   -.24913E-03
   7  Prefactor     30.146        29.674       -.32623E-05    .93989E-04
   8  Prefactor     .10000E-03    62.171        .37144E-05** at limit **
   9  Prefactor     .10000E-03    21.249        .46528E-05** at limit **
  10  Prefactor     .10000E-03    16.437       -.15464E-05** at limit **
  11  Prefactor     .10000E-03    1.9669        .97891E-10** at limit **
  12  Prefactor     9.6898        3.1869       -.21389E-07    .11632E-03
  13  Prefactor     8.6104        9.5398        .44139E-06   -.76697E-04
  14  Prefactor     .10000E-03    25.709       -.47329E-05** at limit **
  15  Prefactor     .10000E-03    130.00       -.15752E-05** at limit **
  16  Prefactor     53.390        102.43       -.10964E-03   -.17921E-03
  17  norm          1.2537        .33758       -.30106E-07    .25394E-03
  18  norm          7.9045        8.1978        .14303E-05   -.39057E-03
  19  norm          1.1747        14.220        .39842E-04    .27466E-03
  20  Prefactor     8.1158        6.4182       -.32624E-05   -.10542E-02
  21  Prefactor     .10000E-03    5.4029       -.52995E-08** at limit **
  22  Normalizat    1.0122        .25836        .15665E-05   -.29799E-03
  23  Prefactor     1.1320        .14833        .54795E-06   -.70935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7505
  norm       = 5.97172
  Prefactor  = 34.307
  Prefactor  = 1.41242
  Prefactor  = 30.1463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.68983
  Prefactor  = 8.61041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.39
  norm       = 1.25368
  norm       = 7.90449
  norm       = 1.17467
  Prefactor  = 8.11576
  Prefactor  = 0.0001
  Normalizat = 1.01222
  Prefactor  = 1.13199
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.652     FROM HESSE     STATUS=OK           362 CALLS     3351 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0381        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.750        37.403        .90147E-04   -1.4819    
   4  norm          5.9717        12.089        .16432E-03   -1.5219    
   5  Prefactor     34.307        35.478        .68418E-04   -1.4536    
   6  Prefactor     1.4124        23.011        .36489E-03   -1.5470    
   7  Prefactor     30.146        29.622        .72951E-04   -1.4609    
   8  Prefactor     .10000E-03    62.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9705        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6898        3.1888        .77509E-04   -1.5085    
  13  Prefactor     8.6104        9.5398        .13659E-03   -1.5121    
  14  Prefactor     .10000E-03    26.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    130.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     53.390        100.96        .54846E-04   -1.4245    
  17  norm          1.2537        .33762        .22466E-04   -1.5484    
  18  norm          7.9045        8.1906        .14260E-03   -1.5146    
  19  norm          1.1747        13.200        .42514E-03   -1.5491    
  20  Prefactor     8.1158        6.3785        .14068E-03   -1.5138    
  21  Prefactor     .10000E-03    5.4114        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0122        .29305        .37618E-03   -.92622    
  23  Prefactor     1.1320        .16887        .20457E-03   -.88450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20851e-09
Minuit parameter uncertainties:
  1  2.51617e-06
  2  2.55703e-05
  3  37.447
  4  12.0935
  5  35.5
  6  11.4067
  7  29.6366
  8  0.000232248
  9  0.000201691
  10  4.0436e-05
  11  1.40371e-06
  12  3.18885
  13  9.54144
  14  0.000164638
  15  3.27562e-05
  16  101.282
  17  0.337618
  18  8.19179
  19  7.87738
  20  6.37908
  21  4.64002e-06
  22  0.293513
  23  0.168952
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  9.690e+00  3.189e+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:  1.132e+00  1.690e-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.012e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.12
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 3.45e-08
Energy Flux (Fixed Index): 8.98e-05 +/- 2.96e-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) = 6100.64964959
delta logL = 0.00193359166678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6100.64962579
delta logL = 0.00195739704668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6903       1.0000         .10000E-03   10000.    
     2 'Index1    '    .60664       1.0000          .0000       10.000    
     3 'Normalizat'    1.0133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1319       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=   6100.650     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7120        5.1434        .32183E-02    .10432E-03
   2  Index1        .60625        .50482        .24987        .71955E-04
   3  Normalizat    1.0134        .25826        .84922E-01   -.40396E-05
   4  Prefactor     1.1318        .14678        .36483E-01    .69305E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.71204
  Index1     = 0.606255
  Normalizat = 1.01336
  Prefactor  = 1.1318
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.650     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7120        3.2172        .77675E-04   -1.5085    
   2  Index1        .60625        .34917        .99229E-02   -1.0732    
   3  Normalizat    1.0134        .28717        .37599E-03   -.92584    
   4  Prefactor     1.1318        .16564        .20459E-03   -.88457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49337e-11
Minuit parameter uncertainties:
  1  3.21727
  2  0.350432
  3  0.287614
  4  0.165717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/762053': 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) = 6100.64960286
delta logL = 0.00198032662956

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  9.712e+00  3.217e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.063e-01  3.504e-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:  1.132e+00  1.657e-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.013e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.02
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.61 +/- 0.35
Photon Flux (Free Index): 1.03e-07 +/- 4.10e-08
Energy Flux (Free Index): 9.08e-05 +/- 3.37e-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/762053/cmap_HighResolution_318384001_318643201_4FGL_J1231.1-1412_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='9.08e-05', photon_flux_error='3.45e-08', dlogl='1.98e-03', energy_flux='8.98e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-05 22:01:21.187691', photon_index_error2='0.35', photon_index2='0.61', ts='40.12', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.37e-05', EG='1.01', time_epoch_completed='1630904481.19', return_code='0', job_id='762053', GAL2='1.13', EG2='1.01', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='4.10e-08', ts2='40.02', photon_index='0.63' WHERE bin_id='305' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:01:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 762053: <4FGL_J1231.1-1412_daily_bin305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin305 187.798 -14.2014 318384001 318643201 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 :                                   650.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            928 sec.

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

