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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin997
RA = 187.798, Dec = -14.2014
tmin = 497750401, tmax = 498009601
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='766727', job_status='RUN', time_executed='2021-09-05 22:05:49.475460', time_epoch_executed='1630904749.48' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766727

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766727/ft1_4FGL_J1231.1-1412_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766727/ft2_4FGL_J1231.1-1412_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766727/ft1_4FGL_J1231.1-1412_daily_bin997.fits outfile=/scratch/kocevski/766727/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin997.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=497750401.0 tmax=498009601.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 4.69
user 4.39
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766727/ft2_4FGL_J1231.1-1412_daily_bin997.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/766727/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/766727/ft1_filtered_4FGL_J1231.1-1412_daily_bin997.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.55
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766727/ft1_filtered_4FGL_J1231.1-1412_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/766727/ft2_4FGL_J1231.1-1412_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/766727/ltcube_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.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/766727/ft2_4FGL_J1231.1-1412_daily_bin997.fits
.....................!
real 14.21
user 13.76
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766727/ft1_filtered_4FGL_J1231.1-1412_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/766727/ft2_4FGL_J1231.1-1412_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/766727/ltcube_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.fits outfile=/scratch/kocevski/766727/expmap_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.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/766727/ltcube_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.fits
.....................!
real 191.92
user 186.47
sys 4.77

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/766727/ft1_filtered_4FGL_J1231.1-1412_daily_bin997.fits scfile=/scratch/kocevski/766727/ft2_4FGL_J1231.1-1412_daily_bin997.fits outfile=/scratch/kocevski/766727/cmap_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.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/766727/ft1_filtered_4FGL_J1231.1-1412_daily_bin997.fits scfile=/scratch/kocevski/766727/ft2_4FGL_J1231.1-1412_daily_bin997.fits outfile=/scratch/kocevski/766727/cmap_HighResolution_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.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.59
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.487       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.890       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83238E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    65.246       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4449       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0616       1.0000         .10000E-03   10000.    
    19 'norm      '    13.677       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1487       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1416       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=   6139.500     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2506 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5411        .35489E-08** at limit **
   2  Prefactor     .10000E-03    8.8629       -.86707E-05** at limit **
   3  Prefactor     .10000E-03    14.280        .54575E-05** at limit **
   4  norm          12.473        6.5576        .15134E-05    .78402E-03
   5  Prefactor     .10000E-03    16.164       -.63590E-05** at limit **
   6  Prefactor     3.3081        7.6878       -.41136E-06   -.16562E-03
   7  Prefactor     31.893        30.690        .28360E-05    .11879E-04
   8  Prefactor     .10000E-03    160.91       -.17500E-03** at limit **
   9  Prefactor     .10000E-03    12.755        .12269E-06** at limit **
  10  Prefactor     .10000E-03    26.310       -.64132E-05** at limit **
  11  Prefactor     .10000E-03    2.3560       -.90535E-08** at limit **
  12  Prefactor     8.7933        2.9232        .17795E-07    .83631E-04
  13  Prefactor     .10000E-03    8.7621        .76422E-05** at limit **
  14  Prefactor     22.969        16.038        .22312E-06   -.30854E-04
  15  Prefactor     .10000E-03    15.155        .12623E-05** at limit **
  16  Prefactor     65.266        120.86        .24298E-04   -.34759E-05
  17  norm          1.4450        .37800        .90404E-08   -.37585E-03
  18  norm          2.0645        11.605       -.15926E-05   -.29493E-03
  19  norm          13.678        10.456       -.23563E-05   -.65721E-04
  20  Prefactor     .10000E-03    3.0352       -.74292E-07** at limit **
  21  Prefactor     .10000E-03    39.957        .17160E-04** at limit **
  22  Normalizat    1.1487        .28774       -.10350E-05    .11633E-03
  23  Prefactor     1.1415        .15784        .60561E-07    .30242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4734
  Prefactor  = 0.0001
  Prefactor  = 3.30809
  Prefactor  = 31.8926
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.79333
  Prefactor  = 0.0001
  Prefactor  = 22.9691
  Prefactor  = 0.0001
  Prefactor  = 65.2662
  norm       = 1.44501
  norm       = 2.06455
  norm       = 13.6781
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.14869
  Prefactor  = 1.14146
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.500     FROM HESSE     STATUS=OK           362 CALLS     2868 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5509        .94981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.473        6.5654        .11336E-03   -1.5001    
   5  Prefactor     .10000E-03    16.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3081        7.6672        .22261E-03   -1.5344    
   7  Prefactor     31.893        30.692        .70955E-04   -1.4578    
   8  Prefactor     .10000E-03    161.18        .20878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3658        .11744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7933        2.9240        .75055E-04   -1.5115    
  13  Prefactor     .10000E-03    8.7925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.969        16.112        .83586E-04   -1.4749    
  15  Prefactor     .10000E-03    15.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     65.266        120.73        .49684E-04   -1.4090    
  17  norm          1.4450        .37882        .23463E-04   -1.5468    
  18  norm          2.0645        11.595        .28780E-03   -1.5421    
  19  norm          13.678        10.444        .10831E-03   -1.4968    
  20  Prefactor     .10000E-03    3.0394        .13323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1487        .33391        .37867E-03   -.88203    
  23  Prefactor     1.1415        .18336        .21208E-03   -.88152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3687e-10
Minuit parameter uncertainties:
  1  1.21398e-06
  2  9.67931e-06
  3  3.87572e-05
  4  6.5658
  5  3.2804e-06
  6  7.6695
  7  30.7071
  8  0.00128023
  9  3.32059e-05
  10  4.07163e-05
  11  3.65132e-07
  12  2.92407
  13  1.98565e-05
  14  16.115
  15  1.14116e-06
  16  121.191
  17  0.378822
  18  9.7881
  19  10.445
  20  1.14899e-05
  21  0.000370748
  22  0.334527
  23  0.183464
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.793e+00  2.924e+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.141e+00  1.835e-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.149e+00  3.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.86
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 8.15e-05 +/- 2.71e-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) = 6139.23486511
delta logL = 0.26558906765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6139.19589929
delta logL = 0.304554893062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5364       1.0000         .10000E-03   10000.    
     2 'Index1    '    .32067       1.0000          .0000       10.000    
     3 'Normalizat'    1.1610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       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=   6139.196     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      199 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5364        3.1467        .34300E-02    .24004E-02
   2  Index1        .32067        .37931        .37095       -.13768E-04
   3  Normalizat    1.1611        .28004        .85133E-01    .20821E-04
   4  Prefactor     1.1407        .15619        .36210E-01   -.20143E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.53642
  Index1     = 0.320675
  Normalizat = 1.16105
  Prefactor  = 1.14071
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.196     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5364        2.9759        .75240E-04   -1.5124    
   2  Index1        .32067        .39315        .14943E-01   -1.2107    
   3  Normalizat    1.1611        .32124        .37696E-03   -.87815    
   4  Prefactor     1.1407        .18089        .21221E-03   -.88176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56258e-10
Minuit parameter uncertainties:
  1  2.97595
  2  0.396489
  3  0.321789
  4  0.180987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766727': 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) = 6139.19589926
delta logL = 0.304554920749

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.536e+00  2.976e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.207e-01  3.965e-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.141e+00  1.810e-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.161e+00  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.44
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.32 +/- 0.40
Photon Flux (Free Index): 7.67e-08 +/- 3.26e-08
Energy Flux (Free Index): 9.28e-05 +/- 3.54e-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/766727/cmap_HighResolution_497750401_498009601_4FGL_J1231.1-1412_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='9.28e-05', photon_flux_error='3.16e-08', dlogl='3.05e-01', energy_flux='8.15e-05', photon_flux2='7.67e-08', job_status='DONE', time_completed='2021-09-05 22:16:19.458372', photon_index_error2='0.40', photon_index2='0.32', ts='40.86', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='3.54e-05', EG='1.15', time_epoch_completed='1630905379.46', return_code='0', job_id='766727', GAL2='1.14', EG2='1.16', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='3.26e-08', ts2='41.44', photon_index='0.63' WHERE bin_id='997' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 766727: <4FGL_J1231.1-1412_daily_bin997> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin997 187.798 -14.2014 497750401 498009601 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 :                                   621.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            933 sec.

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

