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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin147
RA = 187.798, Dec = -14.2014
tmin = 277430401, tmax = 277689601
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='761727', job_status='RUN', time_executed='2021-09-05 21:46:20.489712', time_epoch_executed='1630903580.49' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761727/ft1_4FGL_J1231.1-1412_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761727/ft2_4FGL_J1231.1-1412_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761727/ft1_4FGL_J1231.1-1412_daily_bin147.fits outfile=/scratch/kocevski/761727/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin147.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=277430401.0 tmax=277689601.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.55
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761727/ft1_filtered_4FGL_J1231.1-1412_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/761727/ft2_4FGL_J1231.1-1412_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/761727/ltcube_277430401_277689601_4FGL_J1231.1-1412_daily_bin147.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/761727/ft2_4FGL_J1231.1-1412_daily_bin147.fits
.....................!
real 14.53
user 14.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761727/ft1_filtered_4FGL_J1231.1-1412_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/761727/ft2_4FGL_J1231.1-1412_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/761727/ltcube_277430401_277689601_4FGL_J1231.1-1412_daily_bin147.fits outfile=/scratch/kocevski/761727/expmap_277430401_277689601_4FGL_J1231.1-1412_daily_bin147.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/761727/ltcube_277430401_277689601_4FGL_J1231.1-1412_daily_bin147.fits
.....................!
real 191.52
user 186.38
sys 4.66

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/761727/ft1_filtered_4FGL_J1231.1-1412_daily_bin147.fits scfile=/scratch/kocevski/761727/ft2_4FGL_J1231.1-1412_daily_bin147.fits outfile=/scratch/kocevski/761727/cmap_277430401_277689601_4FGL_J1231.1-1412_daily_bin147.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.798 yref=-14.2014 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1113       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.708       1.0000         .10000E-03   10000.    
     4 'norm      '    8.9458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    121.57       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    122.86       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18955E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2420       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9612       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.899       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6713       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88526       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=   7242.521     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2505 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1104        3.4185       -.10495E-06   -.96952E-04
   2  Prefactor     11.063        16.545       -.58297E-06   -.20508E-04
   3  Prefactor     34.706        26.557       -.59504E-06    .18394E-04
   4  norm          8.9455        6.6811        .11126E-05   -.20102E-04
   5  Prefactor     121.57        62.590        .99808E-06   -.46617E-05
   6  Prefactor     5.7993        16.510       -.87237E-06   -.52885E-04
   7  Prefactor     .10000E-03    26.466        .40615E-05** at limit **
   8  Prefactor     122.87        79.388        .12976E-04    .20757E-04
   9  Prefactor     9.2500        26.672       -.34685E-04   -.25360E-04
  10  Prefactor     .10000E-03    65.251        .22850E-05** at limit **
  11  Prefactor     1.5987        8.3278       -.43418E-05   -.73095E-03
  12  Prefactor     4.9210        2.8782        .41048E-06    .14124E-03
  13  Prefactor     .10000E-03    8.8156       -.57161E-07** at limit **
  14  Prefactor     25.637        17.981       -.46042E-06    .35430E-04
  15  Prefactor     .10000E-03    43.025        .18507E-04** at limit **
  16  Prefactor     .10000E-03    34.486       -.17861E-04** at limit **
  17  norm          3.2419        .49630       -.14135E-07   -.60202E-03
  18  norm          .10000E-03    1.9005        .19300E-09** at limit **
  19  norm          3.9627        4.1410       -.60173E-07    .40201E-04
  20  Prefactor     .10000E-03    3.1951       -.19735E-07** at limit **
  21  Prefactor     21.896        17.849       -.57695E-06   -.63615E-05
  22  Normalizat    1.6717        .28347       -.48135E-06    .87399E-04
  23  Prefactor     .88509        .14454        .17806E-05   -.14759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.11043
  Prefactor  = 11.0628
  Prefactor  = 34.7061
  norm       = 8.94549
  Prefactor  = 121.567
  Prefactor  = 5.79925
  Prefactor  = 0.0001
  Prefactor  = 122.873
  Prefactor  = 9.25001
  Prefactor  = 0.000100005
  Prefactor  = 1.5987
  Prefactor  = 4.92095
  Prefactor  = 0.0001
  Prefactor  = 25.6369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24193
  norm       = 0.0001
  norm       = 3.96271
  Prefactor  = 0.0001
  Prefactor  = 21.8961
  Normalizat = 1.67168
  Prefactor  = 0.885093
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.521     FROM HESSE     STATUS=OK           374 CALLS     2879 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1104        3.4130        .15813E-03   -1.5355    
   2  Prefactor     11.063        16.544        .12044E-03   -1.5043    
   3  Prefactor     34.706        26.605        .68021E-04   -1.4529    
   4  norm          8.9455        6.6866        .13401E-03   -1.5110    
   5  Prefactor     121.57        62.515        .36502E-04   -1.3498    
   6  Prefactor     5.7993        16.537        .16672E-03   -1.5226    
   7  Prefactor     .10000E-03    26.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     122.87        79.222        .18156E-03   -1.3486    
   9  Prefactor     9.2500        26.557        .13148E-03   -1.5100    
  10  Prefactor     .10000E-03    65.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5987        8.3924        .33560E-03   -1.5455    
  12  Prefactor     4.9210        2.8562        .96096E-04   -1.5264    
  13  Prefactor     .10000E-03    8.8636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.637        18.078        .79105E-04   -1.4695    
  15  Prefactor     .10000E-03    42.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2419        .49948        .22358E-04   -1.5348    
  18  norm          .10000E-03    1.9019        .11458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9627        4.1395        .17173E-03   -1.5310    
  20  Prefactor     .10000E-03    3.2196        .14845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.896        17.886        .85593E-04   -1.4772    
  22  Normalizat    1.6717        .33309        .35936E-03   -.73062    
  23  Prefactor     .88509        .16841        .24980E-03   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08073e-09
Minuit parameter uncertainties:
  1  3.41323
  2  16.5505
  3  26.6143
  4  6.68711
  5  62.5487
  6  16.5496
  7  1.73748e-05
  8  79.2908
  9  26.5913
  10  0.00109818
  11  7.32719
  12  2.85624
  13  7.63339e-06
  14  18.0818
  15  2.92754e-05
  16  9.86889e-06
  17  0.49948
  18  9.12936e-07
  19  4.13975
  20  3.55077e-06
  21  17.8905
  22  0.333534
  23  0.16851
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.921e+00  2.856e+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.851e-01  1.685e-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.672e+00  3.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.53
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 2.65e-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) = 7242.52059427
delta logL = 0.000851650636832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7242.52058782
delta logL = 0.000858100834193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9209       1.0000         .10000E-03   10000.    
     2 'Index1    '    .60474       1.0000          .0000       10.000    
     3 'Normalizat'    1.6724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88501       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=   7242.521     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9205        57.292        .45328E-02    .10109E-03
   2  Index1        .60461        7.6815        .41119        .36418E-04
   3  Normalizat    1.6724        .22992        .81183E-01    .80191E-05
   4  Prefactor     .88501        .71947E-01    .44814E-01    .12686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92051
  Index1     = 0.60461
  Normalizat = 1.67238
  Prefactor  = 0.885012
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.521     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9205        2.5884        .96240E-04   -1.5264    
   2  Index1        .60461        .56588        .14259E-01   -1.0739    
   3  Normalizat    1.6724        .30988        .35930E-03   -.73043    
   4  Prefactor     .88501        .16506        .24982E-03   -.96667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49821e-12
Minuit parameter uncertainties:
  1  2.58842
  2  0.571339
  3  0.310243
  4  0.165158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761727': 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) = 7242.52058778
delta logL = 0.000858139009324

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.921e+00  2.588e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.046e-01  5.713e-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.850e-01  1.652e-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.672e+00  3.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.51
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.60 +/- 0.57
Photon Flux (Free Index): 5.22e-08 +/- 3.52e-08
Energy Flux (Free Index): 4.60e-05 +/- 2.62e-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/761727/cmap_HighResolution_277430401_277689601_4FGL_J1231.1-1412_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='4.60e-05', photon_flux_error='3.09e-08', dlogl='8.58e-04', energy_flux='4.56e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-05 21:57:39.832372', photon_index_error2='0.57', photon_index2='0.60', ts='9.53', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='1.67', time_epoch_completed='1630904259.83', return_code='0', job_id='761727', GAL2='0.89', EG2='1.67', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='3.52e-08', ts2='9.51', photon_index='0.63' WHERE bin_id='147' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:57:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 761727: <4FGL_J1231.1-1412_daily_bin147> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin147> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:45:34 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:45:44 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:44 2021
Terminated at Sun Sep  5 21:57:40 2021
Results reported at Sun Sep  5 21:57:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin147 187.798 -14.2014 277430401 277689601 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            726 sec.

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

