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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin199
RA = 187.798, Dec = -14.2014
tmin = 290908801, tmax = 291168001
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='761845', job_status='RUN', time_executed='2021-09-05 21:48:20.201845', time_epoch_executed='1630903700.2' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761845/ft1_4FGL_J1231.1-1412_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761845/ft2_4FGL_J1231.1-1412_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761845/ft1_4FGL_J1231.1-1412_daily_bin199.fits outfile=/scratch/kocevski/761845/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin199.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=290908801.0 tmax=291168001.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.53
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761845/ft1_filtered_4FGL_J1231.1-1412_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/761845/ft2_4FGL_J1231.1-1412_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/761845/ltcube_290908801_291168001_4FGL_J1231.1-1412_daily_bin199.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/761845/ft2_4FGL_J1231.1-1412_daily_bin199.fits
.....................!
real 16.79
user 16.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761845/ft1_filtered_4FGL_J1231.1-1412_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/761845/ft2_4FGL_J1231.1-1412_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/761845/ltcube_290908801_291168001_4FGL_J1231.1-1412_daily_bin199.fits outfile=/scratch/kocevski/761845/expmap_290908801_291168001_4FGL_J1231.1-1412_daily_bin199.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/761845/ltcube_290908801_291168001_4FGL_J1231.1-1412_daily_bin199.fits
.....................!
real 193.50
user 186.82
sys 5.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/761845/ft1_filtered_4FGL_J1231.1-1412_daily_bin199.fits scfile=/scratch/kocevski/761845/ft2_4FGL_J1231.1-1412_daily_bin199.fits outfile=/scratch/kocevski/761845/cmap_290908801_291168001_4FGL_J1231.1-1412_daily_bin199.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.57
user 0.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761845/ft1_filtered_4FGL_J1231.1-1412_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/761845/ft2_4FGL_J1231.1-1412_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761845/Model_4FGL_J1231.1-1412_daily_bin199.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/761845/ft1_filtered_4FGL_J1231.1-1412_daily_bin199.fits.....................!
real 54.20
user 52.66
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    68.989       1.0000         .10000E-03   10000.    
     4 'norm      '    .49182E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.866       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27394E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.853       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2502       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2399       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0965       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.911       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2123       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98621       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=   6074.523     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2610 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8764        5.1357       -.17768E-06   -.29063E-04
   2  Prefactor     4.4277        23.413       -.10760E-06   -.61562E-05
   3  Prefactor     68.974        30.698        .25668E-06   -.67382E-04
   4  norm          .10000E-03    44.397       -.16771E-04** at limit **
   5  Prefactor     56.862        43.491       -.67500E-09    .19207E-05
   6  Prefactor     .10000E-03    11.394        .34847E-06** at limit **
   7  Prefactor     .10000E-03    20.051        .11789E-06** at limit **
   8  Prefactor     .10000E-03    61.713        .29731E-05** at limit **
   9  Prefactor     .10000E-03    21.899        .55171E-05** at limit **
  10  Prefactor     39.483        72.800        .22349E-05    .75694E-04
  11  Prefactor     .10000E-03    10.487        .75471E-06** at limit **
  12  Prefactor     8.7774        3.1419       -.26335E-07   -.22840E-03
  13  Prefactor     .10000E-03    9.1441        .54579E-06** at limit **
  14  Prefactor     13.853        13.402       -.18132E-06   -.45330E-04
  15  Prefactor     16.567        28.795        .22784E-06    .12350E-04
  16  Prefactor     .10000E-03    41.345       -.46438E-06** at limit **
  17  norm          1.2501        .32862       -.19931E-07   -.13816E-03
  18  norm          9.2366        11.235        .62846E-07   -.88679E-05
  19  norm          4.0961        5.3708       -.12852E-05   -.82588E-04
  20  Prefactor     .10000E-03    3.6627        .46538E-07** at limit **
  21  Prefactor     29.910        15.328       -.24713E-07   -.11952E-04
  22  Normalizat    1.2121        .28739        .13794E-05   -.18094E-03
  23  Prefactor     .98638        .15379       -.99998E-06    .27963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8764
  Prefactor  = 4.42767
  Prefactor  = 68.9741
  norm       = 0.000100001
  Prefactor  = 56.8625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 39.4834
  Prefactor  = 0.0001
  Prefactor  = 8.77737
  Prefactor  = 0.0001
  Prefactor  = 13.8529
  Prefactor  = 16.567
  Prefactor  = 0.0001
  norm       = 1.2501
  norm       = 9.23658
  norm       = 4.09605
  Prefactor  = 0.0001
  Prefactor  = 29.9097
  Normalizat = 1.21211
  Prefactor  = 0.986377
 **********
 **   18 **HESSE 
 **********

 FCN=   6074.523     FROM HESSE     STATUS=OK           370 CALLS     2980 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8764        5.1000        .18691E-03   -1.5314    
   2  Prefactor     4.4277        23.173        .19124E-03   -1.5287    
   3  Prefactor     68.974        30.340        .24163E-03   -1.4045    
   4  norm          .10000E-03    44.067        .29761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.862        43.473        .53197E-04   -1.4198    
   6  Prefactor     .10000E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    61.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.483        .21428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.483        73.447        .63580E-04   -1.4450    
  11  Prefactor     .10000E-03    10.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7774        3.1380        .79643E-04   -1.5115    
  13  Prefactor     .10000E-03    9.1739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.853        13.428        .10762E-03   -1.4963    
  15  Prefactor     16.567        28.862        .98401E-04   -1.4894    
  16  Prefactor     .10000E-03    41.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2501        .32990        .21661E-04   -1.5484    
  18  norm          9.2366        11.237        .13185E-03   -1.5100    
  19  norm          4.0961        5.3680        .99593E-03   -1.5303    
  20  Prefactor     .10000E-03    3.6823        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.910        15.331        .73258E-04   -1.4614    
  22  Normalizat    1.2121        .32316        .35571E-03   -.86229    
  23  Prefactor     .98638        .17362        .21475E-03   -.93185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29438e-09
Minuit parameter uncertainties:
  1  5.10062
  2  20.2707
  3  30.3472
  4  0.000317749
  5  43.4976
  6  1.03167e-06
  7  9.97714e-07
  8  0.000594724
  9  0.000431208
  10  73.6159
  11  4.22112e-05
  12  3.13806
  13  3.04238e-05
  14  13.4314
  15  28.8858
  16  0.000201575
  17  0.329896
  18  11.2394
  19  5.36863
  20  2.8715e-05
  21  15.3328
  22  0.323699
  23  0.173715
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.777e+00  3.138e+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.864e-01  1.737e-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.212e+00  3.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.50
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 9.48e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 8.14e-05 +/- 2.91e-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) = 6072.90342553
delta logL = 1.61966167722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.8981746
delta logL = 1.62491261291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1013       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3421       1.0000          .0000       10.000    
     3 'Normalizat'    1.1327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99725       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=   6072.898     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1009        34.288        .35215E-02    .50512E-03
   2  Index1        1.3423        5.5601        .14865        .18320E-03
   3  Normalizat    1.1328        .30359        .82578E-01    .59522E-04
   4  Prefactor     .99719        .87730E-01    .46233E-01    .31245E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10088
  Index1     = 1.34231
  Normalizat = 1.13277
  Prefactor  = 0.997185
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.898     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1009        2.9880        .66039E-04   -1.5139    
   2  Index1        1.3423        .36652        .57773E-02   -.82058    
   3  Normalizat    1.1328        .31225        .36560E-03   -.88707    
   4  Prefactor     .99719        .17074        .21322E-03   -.92823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61877e-11
Minuit parameter uncertainties:
  1  2.98807
  2  0.367233
  3  0.312762
  4  0.170831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761845': 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) = 6072.89817429
delta logL = 1.62491291979

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.101e+00  2.988e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.342e+00  3.672e-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.972e-01  1.708e-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.133e+00  3.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.52
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.34 +/- 0.37
Photon Flux (Free Index): 1.90e-07 +/- 8.17e-08
Energy Flux (Free Index): 7.77e-05 +/- 2.42e-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/761845/cmap_HighResolution_290908801_291168001_4FGL_J1231.1-1412_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.48e-08', energy_flux2='7.77e-05', photon_flux_error='3.39e-08', dlogl='1.62e+00', energy_flux='8.14e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-05 21:58:57.210170', photon_index_error2='0.37', photon_index2='1.34', ts='31.50', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='1.21', time_epoch_completed='1630904337.21', return_code='0', job_id='761845', GAL2='1.00', EG2='1.13', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='8.17e-08', ts2='34.52', photon_index='0.63' WHERE bin_id='199' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:58:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 761845: <4FGL_J1231.1-1412_daily_bin199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin199 187.798 -14.2014 290908801 291168001 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 :                                   631.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            796 sec.

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

