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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin889
RA = 187.798, Dec = -14.2014
tmin = 469756801, tmax = 470016001
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='766572', job_status='RUN', time_executed='2021-09-05 22:04:18.193615', time_epoch_executed='1630904658.19' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='889'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766572/ft1_4FGL_J1231.1-1412_daily_bin889.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766572/ft1_4FGL_J1231.1-1412_daily_bin889.fits outfile=/scratch/kocevski/766572/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin889.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=469756801.0 tmax=470016001.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.49
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766572/ft1_filtered_4FGL_J1231.1-1412_daily_bin889.fits" evtable="EVENTS" scfile=/scratch/kocevski/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits sctable="SC_DATA" outfile=/scratch/kocevski/766572/ltcube_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.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/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits
.....................!
real 15.05
user 14.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766572/ft1_filtered_4FGL_J1231.1-1412_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits sctable="SC_DATA" expcube=/scratch/kocevski/766572/ltcube_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.fits outfile=/scratch/kocevski/766572/expmap_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.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/766572/ltcube_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.fits
.....................!
real 193.21
user 187.13
sys 5.21

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/766572/ft1_filtered_4FGL_J1231.1-1412_daily_bin889.fits scfile=/scratch/kocevski/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits outfile=/scratch/kocevski/766572/cmap_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766572/ft1_filtered_4FGL_J1231.1-1412_daily_bin889.fits scfile=/scratch/kocevski/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits outfile=/scratch/kocevski/766572/cmap_HighResolution_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766572/ft1_filtered_4FGL_J1231.1-1412_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/766572/ft2_4FGL_J1231.1-1412_daily_bin889.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766572/Model_4FGL_J1231.1-1412_daily_bin889.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/766572/ft1_filtered_4FGL_J1231.1-1412_daily_bin889.fits.....................!
real 62.42
user 60.94
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28575       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8513       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.028       1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6287       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98563E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    110.33       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8592       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6929       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5263       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83553       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=   7510.562     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     2977 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3754        2.1493        .15659E-03   -.23959E-05
   2  Prefactor     1.9015        16.165        .15073E-02    .21437E-03
   3  Prefactor     .17933        22.017        .88831E-01    .65840E-04
   4  norm          2.8696        5.4459        .21741E-03   -.19651E-03
   5  Prefactor     30.022        41.097        .73115E-04    .93294E-07
   6  Prefactor     62.766        23.239        .50649E-04   -.42647E-05
   7  Prefactor     .10000E-03    22.601        .18142E-02** at limit **
   8  Prefactor     59.473        66.184        .52054E-04   -.29484E-04
   9  Prefactor     .10000E-03    12.071        .18142E-02** at limit **
  10  Prefactor     .10000E-03    38.398        .18142E-02** at limit **
  11  Prefactor     10.680        7.5281        .12261E-03   -.31063E-04
  12  Prefactor     4.6290        2.5887        .95297E-04   -.32091E-04
  13  Prefactor     .10000E-03    18.690        .18142E-02** at limit **
  14  Prefactor     .60369E-01    9.7568        .64925E-01    .40807E-04
  15  Prefactor     110.26        59.889        .19147E-03    .13063E-05
  16  Prefactor     .10000E-03    50.515        .18142E-02** at limit **
  17  norm          2.8592        .44441        .20840E-04   -.34095E-03
  18  norm          4.6925        7.8813        .18576E-03   -.97922E-06
  19  norm          .10000E-03    3.0141        .14642E-02** at limit **
  20  Prefactor     .10000E-03    2.7084        .13896E-02** at limit **
  21  Prefactor     .10000E-03    5.8198        .18142E-02** at limit **
  22  Normalizat    1.5266        .29989        .33047E-03   -.55523E-04
  23  Prefactor     .83547        .15961        .23338E-03   -.72630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37537
  Prefactor  = 1.90152
  Prefactor  = 0.179327
  norm       = 2.8696
  Prefactor  = 30.0223
  Prefactor  = 62.7662
  Prefactor  = 0.0001
  Prefactor  = 59.4733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.68
  Prefactor  = 4.62905
  Prefactor  = 0.0001
  Prefactor  = 0.0603693
  Prefactor  = 110.265
  Prefactor  = 0.0001
  norm       = 2.85919
  norm       = 4.69249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.52658
  Prefactor  = 0.835474
 **********
 **   18 **HESSE 
 **********

 FCN=   7510.562     FROM HESSE     STATUS=OK           368 CALLS     3345 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3754        2.1491        .62635E-05   -1.5473    
   2  Prefactor     1.9015        16.154        .30146E-03   -1.5432    
   3  Prefactor     .17933        20.519        .92182E-01   -1.5623    
   4  norm          2.8696        5.3971        .86963E-05   -1.5369    
   5  Prefactor     30.022        41.098        .14623E-04   -1.4612    
   6  Prefactor     62.766        23.239        .20260E-05   -1.4122    
   7  Prefactor     .10000E-03    22.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.473        66.164        .10411E-04   -1.4164    
   9  Prefactor     .10000E-03    12.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.680        7.5281        .49042E-05   -1.5054    
  12  Prefactor     4.6290        2.5888        .38119E-05   -1.5278    
  13  Prefactor     .10000E-03    18.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .60369E-01    8.4145        .71808E-01   -1.5659    
  15  Prefactor     110.26        59.891        .76588E-05   -1.3604    
  16  Prefactor     .10000E-03    50.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8592        .44444        .83359E-06   -1.5370    
  18  norm          4.6925        7.8810        .74304E-05   -1.5275    
  19  norm          .10000E-03    3.0146        .29283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7087        .27793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5266        .30020        .13219E-04   -.77034    
  23  Prefactor     .83547        .15980        .93353E-05   -.98434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13581e-10
Minuit parameter uncertainties:
  1  2.14923
  2  11.0883
  3  3.83674
  4  5.39804
  5  41.1363
  6  23.2423
  7  5.09324e-08
  8  66.2464
  9  4.70531e-08
  10  1.96994e-07
  11  7.52878
  12  2.58889
  13  2.26365e-07
  14  1.42447
  15  59.9241
  16  2.25925e-06
  17  0.444439
  18  7.8827
  19  4.0594e-07
  20  2.86452e-07
  21  6.13276e-07
  22  0.300547
  23  0.159884
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.629e+00  2.589e+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.355e-01  1.599e-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.527e+00  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 2.40e-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) = 7509.99349592
delta logL = 0.568053892259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7509.9755687
delta logL = 0.585981115336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3938       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1957       1.0000          .0000       10.000    
     3 'Normalizat'    1.4966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84024       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=   7509.976     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      261 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3937        2.3618        .83165E-04    .85438E-04
   2  Index1        1.1956        .52032        .99119E-02    .17771E-04
   3  Normalizat    1.4965        .28917        .33304E-03    .52433E-04
   4  Prefactor     .84029        .15674        .23257E-03    .55334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39371
  Index1     = 1.19563
  Normalizat = 1.49653
  Prefactor  = 0.840292
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.976     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3937        2.3175        .33266E-05   -1.5289    
   2  Index1        1.1956        .51023        .39647E-03   -.86466    
   3  Normalizat    1.4965        .28918        .13322E-04   -.77876    
   4  Prefactor     .84029        .15683        .93030E-05   -.98260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88956e-12
Minuit parameter uncertainties:
  1  2.31755
  2  0.512357
  3  0.289497
  4  0.156918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766572': 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) = 7509.97556861
delta logL = 0.585981205529

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.394e+00  2.318e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.196e+00  5.124e-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.403e-01  1.569e-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.497e+00  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.98
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.20 +/- 0.51
Photon Flux (Free Index): 8.50e-08 +/- 5.35e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.92e-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/766572/cmap_HighResolution_469756801_470016001_4FGL_J1231.1-1412_daily_bin889.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='3.99e-05', photon_flux_error='2.80e-08', dlogl='5.86e-01', energy_flux='4.29e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-05 22:16:42.323800', photon_index_error2='0.51', photon_index2='1.20', ts='8.82', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='1.53', time_epoch_completed='1630905402.32', return_code='0', job_id='766572', GAL2='0.84', EG2='1.50', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='5.35e-08', ts2='9.98', photon_index='0.63' WHERE bin_id='889' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:16:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 766572: <4FGL_J1231.1-1412_daily_bin889> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin889> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:37 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:00:49 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:00:49 2021
Terminated at Sun Sep  5 22:16:43 2021
Results reported at Sun Sep  5 22:16:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin889 187.798 -14.2014 469756801 470016001 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 :                                   741.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            966 sec.

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

