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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1003
RA = 187.798, Dec = -14.2014
tmin = 499305601, tmax = 499564801
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='766735', job_status='RUN', time_executed='2021-09-05 22:05:25.218134', time_epoch_executed='1630904725.22' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766735

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766735/ft1_4FGL_J1231.1-1412_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766735/ft1_4FGL_J1231.1-1412_daily_bin1003.fits outfile=/scratch/kocevski/766735/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1003.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=499305601.0 tmax=499564801.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.49
user 5.21
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.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/766735/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/766735/ft1_filtered_4FGL_J1231.1-1412_daily_bin1003.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766735/ft1_filtered_4FGL_J1231.1-1412_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/766735/ltcube_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.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/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.fits
.....................!
real 18.66
user 18.20
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766735/ft1_filtered_4FGL_J1231.1-1412_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/766735/ltcube_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.fits outfile=/scratch/kocevski/766735/expmap_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.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/766735/ltcube_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.fits
.....................!
real 192.28
user 187.43
sys 4.34

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/766735/ft1_filtered_4FGL_J1231.1-1412_daily_bin1003.fits scfile=/scratch/kocevski/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.fits outfile=/scratch/kocevski/766735/cmap_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766735/ft1_filtered_4FGL_J1231.1-1412_daily_bin1003.fits scfile=/scratch/kocevski/766735/ft2_4FGL_J1231.1-1412_daily_bin1003.fits outfile=/scratch/kocevski/766735/cmap_HighResolution_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.798 yref=-14.2014 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11394E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    6.3048       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.892       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8028       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.921       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.035       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55507       1.0000         .10000E-03   10000.    
    18 'norm      '    .66453E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    13.607       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5913       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67391       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=   6981.253     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2551 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4125       -.68910E-08** at limit **
   2  Prefactor     .10000E-03    5.6752        .14742E-07** at limit **
   3  Prefactor     .10001E-03    53.344       -.17654E-04** at limit **
   4  norm          6.3237        3.7524       -.10446E-05   -.33413E-03
   5  Prefactor     .10000E-03    15.810       -.88102E-07** at limit **
   6  Prefactor     .10000E-03    6.8650       -.47211E-07** at limit **
   7  Prefactor     37.883        34.538        .46517E-06    .53894E-04
   8  Prefactor     .10000E-03    91.747       -.18523E-05** at limit **
   9  Prefactor     15.590        15.991        .10371E-05    .77459E-03
  10  Prefactor     .10000E-03    65.692       -.20885E-05** at limit **
  11  Prefactor     4.8028        5.0941        .36653E-06    .53823E-03
  12  Prefactor     4.7680        2.1464       -.13670E-07   -.10549E-03
  13  Prefactor     11.921        9.7305        .90231E-07   -.47481E-04
  14  Prefactor     .10000E-03    9.2998        .63314E-07** at limit **
  15  Prefactor     21.032        30.777        .24382E-06    .15664E-04
  16  Prefactor     .10002E-03    120.26        .55910E-05** at limit **
  17  norm          .55509        .23629        .14030E-07    .47439E-03
  18  norm          .10006E-03    8.2505       -.46695E-05** at limit **
  19  norm          13.606        6.3179       -.29322E-06   -.14392E-02
  20  Prefactor     .10000E-03    3.0931       -.12008E-06** at limit **
  21  Prefactor     .10000E-03    3.0535        .81064E-08** at limit **
  22  Normalizat    1.5914        .21347       -.88232E-06   -.52326E-03
  23  Prefactor     .67394        .11914       -.85972E-07   -.56626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 6.32366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8835
  Prefactor  = 0.0001
  Prefactor  = 15.5905
  Prefactor  = 0.000100001
  Prefactor  = 4.80284
  Prefactor  = 4.76798
  Prefactor  = 11.9207
  Prefactor  = 0.0001
  Prefactor  = 21.0319
  Prefactor  = 0.00010002
  norm       = 0.555088
  norm       = 0.000100057
  norm       = 13.6063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.59136
  Prefactor  = 0.673938
 **********
 **   18 **HESSE 
 **********

 FCN=   6981.253     FROM HESSE     STATUS=OK           364 CALLS     2915 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4257        .96952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    56.125        .45383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.3237        3.7807        .60501E-03   -1.5205    
   5  Prefactor     .10000E-03    15.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.883        34.567        .65110E-04   -1.4476    
   8  Prefactor     .10000E-03    92.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.590        16.313        .10148E-03   -1.4918    
  10  Prefactor     .10000E-03    66.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8028        5.1110        .18357E-03   -1.5270    
  12  Prefactor     4.7680        2.1463        .78622E-04   -1.5271    
  13  Prefactor     11.921        9.7322        .11602E-03   -1.5017    
  14  Prefactor     .10000E-03    9.4608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.032        30.842        .87330E-04   -1.4790    
  16  Prefactor     .10002E-03    122.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55509        .23552        .25035E-04   -1.5559    
  18  norm          .10006E-03    59.429        .36253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.606        6.3432        .10858E-03   -1.4970    
  20  Prefactor     .10000E-03    3.1096        .14312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0565        .14259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5914        .24995        .27352E-03   -.75243    
  23  Prefactor     .67394        .13919        .22287E-03   -1.0456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5446e-09
Minuit parameter uncertainties:
  1  4.78909e-07
  2  4.74396e-06
  3  0.00175322
  4  3.78087
  5  3.4035e-05
  6  1.32979e-05
  7  34.5851
  8  8.02123e-06
  9  16.3174
  10  0.000417026
  11  5.11145
  12  2.14638
  13  9.73351
  14  1.95934e-05
  15  30.8654
  16  0.00313101
  17  0.235522
  18  0.00368417
  19  6.34348
  20  1.17325e-05
  21  2.19707e-06
  22  0.250147
  23  0.139266
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.768e+00  2.146e+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:  6.739e-01  1.393e-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.591e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.11
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 1.99e-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) = 6980.82690859
delta logL = 0.425993500628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6980.74159156
delta logL = 0.511310528702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7756       1.0000         .10000E-03   10000.    
     2 'Index1    '    .11140E-03   1.0000          .0000       10.000    
     3 'Normalizat'    1.5996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67795       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=   6980.742     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      227 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7753        2.0289        .51941E-02   -.10648E-03
   2  Index1        .19429E-13    .62789        .50000    ** at limit **
   3  Normalizat    1.5993        .21074        .61750E-01    .30040E-05
   4  Prefactor     .67822        .11831        .42107E-01    .18248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7753
  Index1     = 1.94289e-14
  Normalizat = 1.5993
  Prefactor  = 0.678215
 **********
 **   18 **HESSE 
 **********

 FCN=   6980.742     FROM HESSE     STATUS=OK            35 CALLS      262 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7753        2.1625        .76168E-04   -1.5319    
   2  Index1        .19429E-13    1.0820        .36952       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5993        .24683        .27309E-03   -.75025    
   4  Prefactor     .67822        .13865        .22241E-03   -1.0439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20842e-14
Minuit parameter uncertainties:
  1  2.1625
  2  2.96762e-07
  3  0.247013
  4  0.138717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766735': 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) = 6980.741578
delta logL = 0.511324089761

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  3.775e+00  2.162e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.943e-14  2.968e-07  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:  6.782e-01  1.387e-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.599e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.13
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.13e-08 +/- 1.79e-08
Energy Flux (Free Index): 5.34e-05 +/- 3.06e-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/766735/cmap_HighResolution_499305601_499564801_4FGL_J1231.1-1412_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='5.34e-05', photon_flux_error='2.32e-08', dlogl='5.11e-01', energy_flux='4.42e-05', photon_flux2='3.13e-08', job_status='DONE', time_completed='2021-09-05 22:17:16.754912', photon_index_error2='0.00', photon_index2='0.00', ts='20.11', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='1.59', time_epoch_completed='1630905436.75', return_code='0', job_id='766735', GAL2='0.68', EG2='1.60', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='1.79e-08', ts2='21.13', photon_index='0.63' WHERE bin_id='1003' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 766735: <4FGL_J1231.1-1412_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1003> 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) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:02:12 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:12 2021
Terminated at Sun Sep  5 22:17:17 2021
Results reported at Sun Sep  5 22:17:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1003 187.798 -14.2014 499305601 499564801 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 :                                   691.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            990 sec.

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

