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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin728
RA = 187.798, Dec = -14.2014
tmin = 428025601, tmax = 428284801
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='765082', job_status='RUN', time_executed='2021-09-05 22:00:12.280441', time_epoch_executed='1630904412.28' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765082

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765082/ft1_4FGL_J1231.1-1412_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765082/ft1_4FGL_J1231.1-1412_daily_bin728.fits outfile=/scratch/kocevski/765082/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin728.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.59
user 5.31
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765082/ft1_filtered_4FGL_J1231.1-1412_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/765082/ltcube_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.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/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits
.....................!
real 15.61
user 15.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765082/ft1_filtered_4FGL_J1231.1-1412_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/765082/ltcube_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.fits outfile=/scratch/kocevski/765082/expmap_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.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/765082/ltcube_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.fits
.....................!
real 191.02
user 185.95
sys 4.01

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/765082/ft1_filtered_4FGL_J1231.1-1412_daily_bin728.fits scfile=/scratch/kocevski/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits outfile=/scratch/kocevski/765082/cmap_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.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.66
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765082/ft1_filtered_4FGL_J1231.1-1412_daily_bin728.fits scfile=/scratch/kocevski/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits outfile=/scratch/kocevski/765082/cmap_HighResolution_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.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.60
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765082/ft1_filtered_4FGL_J1231.1-1412_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/765082/ft2_4FGL_J1231.1-1412_daily_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765082/Model_4FGL_J1231.1-1412_daily_bin728.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/765082/ft1_filtered_4FGL_J1231.1-1412_daily_bin728.fits.....................!
real 66.48
user 64.68
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6413       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.419       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.071       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18656E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3234       1.0000         .10000E-03   10000.    
    18 'norm      '    16.275       1.0000         .10000E-03   10000.    
    19 'norm      '    11.030       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6048       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84757       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=   7484.451     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2554 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1789        .12480E-07** at limit **
   2  Prefactor     .10000E-03    5.2296        .24897E-07** at limit **
   3  Prefactor     2.6413        18.577       -.64795E-06   -.11654E-03
   4  norm          .10000E-03    3.1349        .23667E-07** at limit **
   5  Prefactor     22.420        46.491        .37363E-06    .29543E-04
   6  Prefactor     .10000E-03    25.500       -.10333E-04** at limit **
   7  Prefactor     .10000E-03    17.792       -.82843E-06** at limit **
   8  Prefactor     .10000E-03    24.188        .10114E-04** at limit **
   9  Prefactor     .10000E-03    13.960        .14386E-06** at limit **
  10  Prefactor     10.064        65.369       -.76575E-05   -.92866E-05
  11  Prefactor     .10000E-03    2.6542        .10830E-07** at limit **
  12  Prefactor     10.779        3.2341       -.11868E-07    .44212E-04
  13  Prefactor     22.983        18.429        .92211E-06   -.88603E-05
  14  Prefactor     .10000E-03    6.7794       -.19873E-07** at limit **
  15  Prefactor     .10000E-03    290.96       -.24033E-05** at limit **
  16  Prefactor     .10000E-03    37.937        .13723E-05** at limit **
  17  norm          7.3225        .70257        .31696E-08    .23146E-03
  18  norm          16.275        11.921       -.18069E-06   -.32739E-04
  19  norm          11.030        6.7500       -.64351E-06   -.56605E-04
  20  Prefactor     .10000E-03    1.7408        .14641E-07** at limit **
  21  Prefactor     .10000E-03    4.6915        .17853E-07** at limit **
  22  Normalizat    1.6048        .28531        .17762E-06    .37685E-04
  23  Prefactor     .84756        .14977        .27637E-06    .15567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64131
  norm       = 0.0001
  Prefactor  = 22.4196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0643
  Prefactor  = 0.0001
  Prefactor  = 10.7786
  Prefactor  = 22.9828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.32248
  norm       = 16.2755
  norm       = 11.0298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6048
  Prefactor  = 0.847557
 **********
 **   18 **HESSE 
 **********

 FCN=   7484.451     FROM HESSE     STATUS=OK           366 CALLS     2920 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1829        .91726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6413        18.622        .25087E-03   -1.5383    
   4  norm          .10000E-03    3.1483        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.420        46.506        .84596E-04   -1.4761    
   6  Prefactor     .10000E-03    25.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.064        65.614        .12626E-03   -1.5073    
  11  Prefactor     .10000E-03    2.6614        .13760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.779        3.2345        .82631E-04   -1.5051    
  13  Prefactor     22.983        18.426        .83551E-04   -1.4749    
  14  Prefactor     .10000E-03    6.7975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    292.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3225        .70628        .21351E-04   -1.5167    
  18  norm          16.275        11.931        .99279E-04   -1.4901    
  19  norm          11.030        6.7585        .12063E-03   -1.5044    
  20  Prefactor     .10000E-03    1.7429        .11143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6048        .33924        .37282E-03   -.74875    
  23  Prefactor     .84756        .17766        .25700E-03   -.97998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29015e-10
Minuit parameter uncertainties:
  1  1.4089e-07
  2  5.04396e-07
  3  14.0324
  4  5.46168e-06
  5  46.5818
  6  4.80215e-05
  7  1.56244e-07
  8  1.70503e-05
  9  3.74589e-05
  10  51.4768
  11  7.69267e-07
  12  3.23457
  13  18.4301
  14  2.63076e-06
  15  9.09817e-05
  16  1.62305e-05
  17  0.706282
  18  11.9325
  19  6.75895
  20  2.39433e-06
  21  8.04187e-07
  22  0.339724
  23  0.177777
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.078e+01  3.235e+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:  8.476e-01  1.778e-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.605e+00  3.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.62
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 3.49e-08
Energy Flux (Fixed Index): 9.99e-05 +/- 3.00e-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) = 7484.43317442
delta logL = 0.0178487227231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7484.43223773
delta logL = 0.0187854189662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.779       1.0000         .10000E-03   10000.    
     2 'Index1    '    .69245       1.0000          .0000       10.000    
     3 'Normalizat'    1.6008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84757       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=   7484.432     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      199 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.780        5.1567        .30509E-02   -.38285E-04
   2  Index1        .69341        .47593        .24843        .61247E-04
   3  Normalizat    1.6007        .28483        .84306E-01    .72821E-05
   4  Prefactor     .84759        .14735        .44333E-01    .12808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7803
  Index1     = 0.693413
  Normalizat = 1.60071
  Prefactor  = 0.847587
 **********
 **   18 **HESSE 
 **********

 FCN=   7484.432     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.780        3.2175        .82112E-04   -1.5051    
   2  Index1        .69341        .33373        .96776E-02   -1.0379    
   3  Normalizat    1.6007        .33129        .37319E-03   -.74987    
   4  Prefactor     .84759        .17405        .25696E-03   -.97997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04974e-09
Minuit parameter uncertainties:
  1  3.21752
  2  0.334693
  3  0.331747
  4  0.174161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765082': 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) = 7484.43223332
delta logL = 0.0187898234317

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.078e+01  3.218e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.934e-01  3.347e-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.476e-01  1.742e-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.601e+00  3.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.33
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.69 +/- 0.33
Photon Flux (Free Index): 1.23e-07 +/- 4.87e-08
Energy Flux (Free Index): 9.79e-05 +/- 3.11e-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/765082/cmap_HighResolution_428025601_428284801_4FGL_J1231.1-1412_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='9.79e-05', photon_flux_error='3.49e-08', dlogl='1.88e-02', energy_flux='9.99e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-05 22:12:05.371406', photon_index_error2='0.33', photon_index2='0.69', ts='40.62', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='3.11e-05', EG='1.60', time_epoch_completed='1630905125.37', return_code='0', job_id='765082', GAL2='0.85', EG2='1.60', return_code2='0', energy_flux_error='3.00e-05', photon_flux_error2='4.87e-08', ts2='40.33', photon_index='0.63' WHERE bin_id='728' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:12:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 765082: <4FGL_J1231.1-1412_daily_bin728> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin728> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:56:02 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:56:25 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:56:25 2021
Terminated at Sun Sep  5 22:12:06 2021
Results reported at Sun Sep  5 22:12:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin728 187.798 -14.2014 428025601 428284801 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 :                                   709.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            964 sec.

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

