/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 99 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1231.1-1412_daily_bin130
RA = 187.798, Dec = -14.2014
tmin = 273024001, tmax = 273283201
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='761697', job_status='RUN', time_executed='2021-09-05 21:47:33.283735', time_epoch_executed='1630903653.28' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761697

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761697/ft1_4FGL_J1231.1-1412_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761697/ft1_4FGL_J1231.1-1412_daily_bin130.fits outfile=/scratch/kocevski/761697/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin130.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=273024001.0 tmax=273283201.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 2.94
user 2.67
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761697/ft1_filtered_4FGL_J1231.1-1412_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/761697/ltcube_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.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/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits
.....................!
real 14.86
user 14.33
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761697/ft1_filtered_4FGL_J1231.1-1412_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/761697/ltcube_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.fits outfile=/scratch/kocevski/761697/expmap_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.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/761697/ltcube_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.fits
.....................!
real 191.04
user 186.06
sys 4.10

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/761697/ft1_filtered_4FGL_J1231.1-1412_daily_bin130.fits scfile=/scratch/kocevski/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits outfile=/scratch/kocevski/761697/cmap_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.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.65
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761697/ft1_filtered_4FGL_J1231.1-1412_daily_bin130.fits scfile=/scratch/kocevski/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits outfile=/scratch/kocevski/761697/cmap_HighResolution_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761697/ft1_filtered_4FGL_J1231.1-1412_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/761697/ft2_4FGL_J1231.1-1412_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761697/Model_4FGL_J1231.1-1412_daily_bin130.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/761697/ft1_filtered_4FGL_J1231.1-1412_daily_bin130.fits.....................!
real 75.18
user 73.33
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5770       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.489       1.0000         .10000E-03   10000.    
     4 'norm      '    .12382E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.175       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12702E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6973       1.0000         .10000E-03   10000.    
    18 'norm      '    17.680       1.0000         .10000E-03   10000.    
    19 'norm      '    14.133       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6968       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67624       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=   9176.218     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2617 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5774        4.3004        .19006E-05   -.66587E-03
   2  Prefactor     .10000E-03    4.1141       -.57405E-07** at limit **
   3  Prefactor     19.477        19.884       -.18454E-05   -.45102E-03
   4  norm          .10000E-03    3.3062        .10850E-05** at limit **
   5  Prefactor     .10000E-03    12.743       -.93925E-07** at limit **
   6  Prefactor     18.178        19.409       -.51959E-06   -.12749E-04
   7  Prefactor     .10000E-03    14.716       -.23498E-07** at limit **
   8  Prefactor     .10001E-03    144.06        .14377E-05** at limit **
   9  Prefactor     .10000E-03    80.712       -.44030E-05** at limit **
  10  Prefactor     55.934        40.973       -.12031E-05   -.19458E-04
  11  Prefactor     7.9572        5.3307        .63756E-07   -.33690E-06
  12  Prefactor     4.8815        2.1598        .16769E-07   -.96560E-05
  13  Prefactor     .10000E-03    3.9601        .77627E-07** at limit **
  14  Prefactor     11.634        10.814        .11264E-06   -.24259E-04
  15  Prefactor     12.731        52.653       -.38539E-05   -.62007E-04
  16  Prefactor     .10000E-03    61.571        .44542E-06** at limit **
  17  norm          3.6973        .43827        .75975E-07   -.12883E-02
  18  norm          17.680        9.7040        .14535E-06    .19710E-05
  19  norm          14.139        6.3226        .19174E-06   -.46193E-04
  20  Prefactor     .10000E-03    3.2677       -.37434E-07** at limit **
  21  Prefactor     .10000E-03    2.6000        .35995E-07** at limit **
  22  Normalizat    1.6966        .23094       -.34277E-06   -.14428E-03
  23  Prefactor     .67633        .11912       -.70325E-06   -.12245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57738
  Prefactor  = 0.0001
  Prefactor  = 19.4767
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 18.1784
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 55.934
  Prefactor  = 7.95724
  Prefactor  = 4.88146
  Prefactor  = 0.0001
  Prefactor  = 11.634
  Prefactor  = 12.7312
  Prefactor  = 0.0001
  norm       = 3.69727
  norm       = 17.6805
  norm       = 14.1388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.69661
  Prefactor  = 0.676333
 **********
 **   18 **HESSE 
 **********

 FCN=   9176.218     FROM HESSE     STATUS=OK           368 CALLS     2985 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5774        4.1920        .75001E-03   -1.5195    
   2  Prefactor     .10000E-03    4.1184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.477        17.511        .90727E-04   -1.4825    
   4  norm          .10000E-03    28.453        .28189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.178        19.502        .93946E-04   -1.4855    
   7  Prefactor     .10000E-03    14.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    146.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    81.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.934        40.710        .53582E-04   -1.4211    
  11  Prefactor     7.9572        5.3323        .14214E-03   -1.5144    
  12  Prefactor     4.8815        2.1602        .88573E-04   -1.5266    
  13  Prefactor     .10000E-03    3.9909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.634        10.850        .11746E-03   -1.5026    
  15  Prefactor     12.731        54.044        .11149E-03   -1.4994    
  16  Prefactor     .10000E-03    61.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6973        .44281        .19726E-04   -1.5323    
  18  norm          17.680        9.7076        .95253E-04   -1.4867    
  19  norm          14.139        6.2969        .10654E-03   -1.4956    
  20  Prefactor     .10000E-03    3.2876        .16843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6021        .15085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6966        .27364        .31824E-03   -.72394    
  23  Prefactor     .67633        .13954        .25319E-03   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5607e-10
Minuit parameter uncertainties:
  1  4.1922
  2  8.16264e-06
  3  17.5159
  4  0.000632858
  5  1.60055e-05
  6  19.5084
  7  3.55697e-06
  8  0.00275864
  9  0.000249536
  10  40.7307
  11  5.33261
  12  2.16026
  13  2.0485e-06
  14  10.852
  15  52.5421
  16  0.000245412
  17  0.442812
  18  9.7085
  19  6.2972
  20  2.85366e-06
  21  3.68083e-07
  22  0.273887
  23  0.139607
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.881e+00  2.160e+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.763e-01  1.396e-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.697e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.46
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.27e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 4.52e-05 +/- 2.00e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9174.89724745
delta logL = 1.32121183668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9174.88897483
delta logL = 1.32948444901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5805       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3157       1.0000          .0000       10.000    
     3 'Normalizat'    1.6555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68164       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=   9174.889     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5806        25.198        .47020E-02    .16671E-03
   2  Index1        1.3157        2.8313        .20687        .10625E-03
   3  Normalizat    1.6555        .14512        .72559E-01    .65729E-05
   4  Prefactor     .68162        .53466E-01    .42156E-01    .28338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58062
  Index1     = 1.31566
  Normalizat = 1.65554
  Prefactor  = 0.681622
 **********
 **   18 **HESSE 
 **********

 FCN=   9174.889     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5806        1.9983        .73983E-04   -1.5280    
   2  Index1        1.3157        .39519        .72569E-02   -.82843    
   3  Normalizat    1.6555        .25783        .32102E-03   -.73497    
   4  Prefactor     .68162        .13668        .25184E-03   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37537e-12
Minuit parameter uncertainties:
  1  1.99828
  2  0.396092
  3  0.258039
  4  0.136745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761697': 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) = 9174.88897482
delta logL = 1.32948446464

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.581e+00  1.998e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.316e+00  3.961e-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:  6.816e-01  1.367e-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.656e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.05
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.32 +/- 0.40
Photon Flux (Free Index): 1.04e-07 +/- 5.01e-08
Energy Flux (Free Index): 4.34e-05 +/- 1.64e-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/761697/cmap_HighResolution_273024001_273283201_4FGL_J1231.1-1412_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.27e-08', energy_flux2='4.34e-05', photon_flux_error='2.33e-08', dlogl='1.33e+00', energy_flux='4.52e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-05 22:00:52.661367', photon_index_error2='0.40', photon_index2='1.32', ts='17.46', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.70', time_epoch_completed='1630904452.66', return_code='0', job_id='761697', GAL2='0.68', EG2='1.66', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='5.01e-08', ts2='20.05', photon_index='0.63' WHERE bin_id='130' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:00:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 761697: <4FGL_J1231.1-1412_daily_bin130> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin130> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:45:32 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:45:39 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:45:39 2021
Terminated at Sun Sep  5 22:00:53 2021
Results reported at Sun Sep  5 22:00:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin130 187.798 -14.2014 273024001 273283201 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 :                                   791.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            921 sec.

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

