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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin458
RA = 187.798, Dec = -14.2014
tmin = 358041601, tmax = 358300801
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='763350', job_status='RUN', time_executed='2021-09-05 21:52:08.412451', time_epoch_executed='1630903928.41' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763350/ft1_4FGL_J1231.1-1412_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763350/ft1_4FGL_J1231.1-1412_daily_bin458.fits outfile=/scratch/kocevski/763350/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin458.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=358041601.0 tmax=358300801.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.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.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/763350/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin458.fits evtable="EVENTS" outfile="/scratch/kocevski/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.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/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/763350/ltcube_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.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/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits
.....................!
real 13.30
user 12.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/763350/ltcube_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.fits outfile=/scratch/kocevski/763350/expmap_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.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/763350/ltcube_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.fits
.....................!
real 191.23
user 185.89
sys 4.76

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/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.fits scfile=/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits outfile=/scratch/kocevski/763350/cmap_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.fits scfile=/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits outfile=/scratch/kocevski/763350/cmap_HighResolution_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/763350/ft2_4FGL_J1231.1-1412_daily_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763350/Model_4FGL_J1231.1-1412_daily_bin458.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/763350/ft1_filtered_4FGL_J1231.1-1412_daily_bin458.fits.....................!
real 78.79
user 77.31
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.288       1.0000         .10000E-03   10000.    
     4 'norm      '    .13687E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.525       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6007       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12562E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.110       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1697       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4158       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7385       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10884E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.915       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5660       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80970       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=   10039.08     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2546 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .78220        .32610E-07** at limit **
   2  Prefactor     .10000E-03    4.0023        .20115E-07** at limit **
   3  Prefactor     15.277        12.282       -.32466E-06    .31655E-05
   4  norm          .10000E-03    3.5155        .12855E-08** at limit **
   5  Prefactor     .10000E-03    67.321        .43178E-05** at limit **
   6  Prefactor     .10000E-03    8.3856        .16166E-06** at limit **
   7  Prefactor     22.502        27.938       -.11445E-04   -.18766E-04
   8  Prefactor     .10000E-03    27.268        .84345E-06** at limit **
   9  Prefactor     9.5790        16.635        .61260E-06    .15593E-04
  10  Prefactor     .10000E-03    37.693       -.18814E-05** at limit **
  11  Prefactor     .10000E-03    1.1809        .30769E-07** at limit **
  12  Prefactor     4.6905        1.6734       -.62432E-08    .11341E-04
  13  Prefactor     1.5548        4.5032       -.56720E-06   -.49533E-03
  14  Prefactor     .10000E-03    6.5494        .17184E-08** at limit **
  15  Prefactor     .10000E-03    9.2643        .23423E-06** at limit **
  16  Prefactor     23.106        54.611       -.74661E-05    .50736E-05
  17  norm          1.1697        .25359       -.66882E-08    .11013E-03
  18  norm          2.4163        5.9796       -.41349E-06   -.39095E-03
  19  norm          3.7444        4.9989        .81491E-06   -.47553E-03
  20  Prefactor     .10000E-03    2.9954       -.97049E-07** at limit **
  21  Prefactor     20.915        11.016       -.13474E-06    .42057E-05
  22  Normalizat    1.5660        .18702        .51444E-06    .22001E-05
  23  Prefactor     .80967        .10583        .36933E-06    .30200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.277
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 22.5024
  Prefactor  = 0.0001
  Prefactor  = 9.57898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.69053
  Prefactor  = 1.5548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1057
  norm       = 1.16971
  norm       = 2.41626
  norm       = 3.7444
  Prefactor  = 0.0001
  Prefactor  = 20.9151
  Normalizat = 1.56603
  Prefactor  = 0.809667
 **********
 **   18 **HESSE 
 **********

 FCN=   10039.08     FROM HESSE     STATUS=OK           374 CALLS     2920 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .78686        .86531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.277        12.178        .10244E-03   -1.4926    
   4  norm          .10000E-03    3.5933        .36251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.502        27.956        .84397E-04   -1.4759    
   8  Prefactor     .10000E-03    27.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5790        16.624        .12933E-03   -1.5089    
  10  Prefactor     .10000E-03    37.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1856        .10630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6905        1.6744        .75330E-04   -1.5275    
  13  Prefactor     1.5548        7.3913        .17074E-02   -1.5459    
  14  Prefactor     .10000E-03    6.6416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.106        56.065        .83324E-04   -1.4746    
  17  norm          1.1697        .25429        .22645E-04   -1.5492    
  18  norm          2.4163        6.7293        .13168E-02   -1.5397    
  19  norm          3.7444        5.1810        .10441E-02   -1.5321    
  20  Prefactor     .10000E-03    11.509        .30858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.915        11.021        .87582E-04   -1.4793    
  22  Normalizat    1.5660        .22158        .29001E-03   -.75940    
  23  Prefactor     .80967        .12599        .21788E-03   -.99373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13639e-09
Minuit parameter uncertainties:
  1  1.4625e-06
  2  6.01194e-08
  3  12.1799
  4  1.52484e-06
  5  0.000895376
  6  5.81237e-05
  7  27.9726
  8  1.92046e-05
  9  16.6319
  10  6.91781e-05
  11  7.62376e-07
  12  1.6744
  13  6.78109
  14  1.01322e-05
  15  1.26054e-06
  16  56.1929
  17  0.254293
  18  6.73142
  19  5.18164
  20  5.70246e-06
  21  11.0221
  22  0.221719
  23  0.12603
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.691e+00  1.674e+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.097e-01  1.260e-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.566e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.57
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 4.35e-05 +/- 1.55e-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) = 10038.8779001
delta logL = 0.203542923464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10038.859306
delta logL = 0.222137063427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4246       1.0000         .10000E-03   10000.    
     2 'Index1    '    .32372       1.0000          .0000       10.000    
     3 'Normalizat'    1.5736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80997       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=   10038.86     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4243        1.8078        .47862E-02   -.17456E-03
   2  Index1        .32351        .42231        .37140        .83068E-04
   3  Normalizat    1.5737        .18581        .65445E-01    .80212E-05
   4  Prefactor     .80996        .10450        .43847E-01    .18961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.42432
  Index1     = 0.323511
  Normalizat = 1.57365
  Prefactor  = 0.809959
 **********
 **   18 **HESSE 
 **********

 FCN=   10038.86     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4243        1.7788        .75936E-04   -1.5287    
   2  Index1        .32351        .46661        .20985E-01   -1.2091    
   3  Normalizat    1.5737        .21809        .28948E-03   -.75729    
   4  Prefactor     .80996        .12349        .21791E-03   -.99362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33449e-11
Minuit parameter uncertainties:
  1  1.77877
  2  0.4722
  3  0.218223
  4  0.123536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763350': 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) = 10038.8593059
delta logL = 0.222137166689

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.424e+00  1.779e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.235e-01  4.722e-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.100e-01  1.235e-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.574e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.99
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.32 +/- 0.47
Photon Flux (Free Index): 3.98e-08 +/- 2.06e-08
Energy Flux (Free Index): 4.80e-05 +/- 1.93e-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/763350/cmap_HighResolution_358041601_358300801_4FGL_J1231.1-1412_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='4.80e-05', photon_flux_error='1.81e-08', dlogl='2.22e-01', energy_flux='4.35e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2021-09-05 22:06:01.663123', photon_index_error2='0.47', photon_index2='0.32', ts='38.57', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.57', time_epoch_completed='1630904761.66', return_code='0', job_id='763350', GAL2='0.81', EG2='1.57', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='2.06e-08', ts2='38.99', photon_index='0.63' WHERE bin_id='458' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 763350: <4FGL_J1231.1-1412_daily_bin458> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin458> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:29 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:51:42 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:51:42 2021
Terminated at Sun Sep  5 22:06:02 2021
Results reported at Sun Sep  5 22:06:02 2021

Your job looked like:

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

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

