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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin342
RA = 187.798, Dec = -14.2014
tmin = 327974401, tmax = 328233601
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='763182', job_status='RUN', time_executed='2021-09-05 21:53:35.452155', time_epoch_executed='1630904015.45' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763182/ft1_4FGL_J1231.1-1412_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763182/ft2_4FGL_J1231.1-1412_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763182/ft1_4FGL_J1231.1-1412_daily_bin342.fits outfile=/scratch/kocevski/763182/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin342.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=327974401.0 tmax=328233601.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.54
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763182/ft1_filtered_4FGL_J1231.1-1412_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/763182/ft2_4FGL_J1231.1-1412_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/763182/ltcube_327974401_328233601_4FGL_J1231.1-1412_daily_bin342.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/763182/ft2_4FGL_J1231.1-1412_daily_bin342.fits
.....................!
real 16.34
user 15.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763182/ft1_filtered_4FGL_J1231.1-1412_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/763182/ft2_4FGL_J1231.1-1412_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/763182/ltcube_327974401_328233601_4FGL_J1231.1-1412_daily_bin342.fits outfile=/scratch/kocevski/763182/expmap_327974401_328233601_4FGL_J1231.1-1412_daily_bin342.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/763182/ltcube_327974401_328233601_4FGL_J1231.1-1412_daily_bin342.fits
.....................!
real 193.57
user 188.57
sys 4.31

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

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763182/ft1_filtered_4FGL_J1231.1-1412_daily_bin342.fits scfile=/scratch/kocevski/763182/ft2_4FGL_J1231.1-1412_daily_bin342.fits outfile=/scratch/kocevski/763182/cmap_HighResolution_327974401_328233601_4FGL_J1231.1-1412_daily_bin342.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/763182/ft1_filtered_4FGL_J1231.1-1412_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/763182/ft2_4FGL_J1231.1-1412_daily_bin342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763182/Model_4FGL_J1231.1-1412_daily_bin342.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/763182/ft1_filtered_4FGL_J1231.1-1412_daily_bin342.fits.....................!
real 53.72
user 52.31
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54242       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28058E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2085       1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8270       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4659       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82211       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6161.884     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     3248 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8935        3.2109        .17714E-03    .13542E-03
   2  Prefactor     .10000E-03    10.709        .18142E-02** at limit **
   3  Prefactor     12.407        12.765        .11373E-03   -.57718E-04
   4  norm          .10000E-03    3.7241        .14678E-02** at limit **
   5  Prefactor     43.228        59.942        .60968E-04    .38562E-04
   6  Prefactor     .10000E-03    11.694        .18142E-02** at limit **
   7  Prefactor     28.309        43.926        .75284E-04    .32920E-04
   8  Prefactor     .10000E-03    21.997        .18142E-02** at limit **
   9  Prefactor     30.149        22.081        .72971E-04   -.23993E-04
  10  Prefactor     .10000E-03    15.524        .18142E-02** at limit **
  11  Prefactor     .54172        16.172        .29313E-02   -.26483E-03
  12  Prefactor     5.9500        2.6796        .81578E-04   -.27830E-03
  13  Prefactor     4.4812        18.488        .19027E-03    .49054E-04
  14  Prefactor     7.1121        13.710        .15042E-03   -.87674E-05
  15  Prefactor     .10000E-03    79.540        .18085    ** at limit **
  16  Prefactor     .10000E-03    45.380        .18142E-02** at limit **
  17  norm          4.2077        .57019        .19447E-04    .19523E-02
  18  norm          .10000E-03    4.9851        .17087E-02** at limit **
  19  norm          .10000E-03    3.7333        .14752E-02** at limit **
  20  Prefactor     3.8274        5.4038        .20631E-03    .42832E-03
  21  Prefactor     .10000E-03    4.6801        .16576E-02** at limit **
  22  Normalizat    1.4658        .32979        .33261E-03    .25766E-03
  23  Prefactor     .82209        .17574        .23158E-03   -.10113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89348
  Prefactor  = 0.0001
  Prefactor  = 12.407
  norm       = 0.0001
  Prefactor  = 43.228
  Prefactor  = 0.000100001
  Prefactor  = 28.309
  Prefactor  = 0.0001
  Prefactor  = 30.1487
  Prefactor  = 0.0001
  Prefactor  = 0.541721
  Prefactor  = 5.95001
  Prefactor  = 4.48121
  Prefactor  = 7.11205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20775
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.8274
  Prefactor  = 0.0001
  Normalizat = 1.46576
  Prefactor  = 0.822091
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.884     FROM HESSE     STATUS=OK           358 CALLS     3606 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8935        3.2107        .70855E-05   -1.5433    
   2  Prefactor     .10000E-03    10.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.407        12.765        .22746E-04   -1.5003    
   4  norm          .10000E-03    3.7254        .29357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.228        59.938        .12194E-04   -1.4392    
   6  Prefactor     .10000E-03    11.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.309        43.925        .15057E-04   -1.4643    
   8  Prefactor     .10000E-03    21.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.149        22.080        .14594E-04   -1.4609    
  10  Prefactor     .10000E-03    15.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .54172        16.036        .11725E-03   -1.5561    
  12  Prefactor     5.9500        2.6707        .32631E-05   -1.5220    
  13  Prefactor     4.4812        18.479        .76110E-05   -1.5285    
  14  Prefactor     7.1121        13.702        .60167E-05   -1.5175    
  15  Prefactor     .10000E-03    88.785        .16892       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2077        .57061        .38894E-05   -1.5298    
  18  norm          .10000E-03    4.9857        .34174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.7338        .29503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8274        5.4035        .82525E-05   -1.5317    
  21  Prefactor     .10000E-03    4.6803        .33152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4658        .32996        .66523E-04   -.78745    
  23  Prefactor     .82209        .17593        .92632E-05   -.98919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00924e-09
Minuit parameter uncertainties:
  1  3.21098
  2  4.88809e-05
  3  12.7677
  4  1.64649e-05
  5  60.0217
  6  0.000236302
  7  43.9754
  8  3.18591e-06
  9  22.0863
  10  3.68753e-06
  11  5.89593
  12  2.67074
  13  18.2092
  14  13.7084
  15  2.41065e-05
  16  0.000116732
  17  0.570613
  18  5.10276e-06
  19  5.67263e-05
  20  5.4042
  21  8.50533e-08
  22  0.330448
  23  0.176046
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.950e+00  2.671e+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.221e-01  1.760e-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.466e+00  3.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.03
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 6.43e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 5.52e-05 +/- 2.48e-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) = 6161.41132066
delta logL = 0.472695220164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6161.25939054
delta logL = 0.624625335068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5634       1.0000         .10000E-03   10000.    
     2 'Index1    '    .30530E-05   1.0000          .0000       10.000    
     3 'Normalizat'    1.4823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82469       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=   6161.259     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5630        2.3364        .47110E-02   -.84561E-04
   2  Index1        .42037E-10    .50628        .50000    ** at limit **
   3  Normalizat    1.4823        .26699        .74833E-01   -.22371E-05
   4  Prefactor     .82472        .14503        .44038E-01   -.11463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56297
  Index1     = 4.20369e-11
  Normalizat = 1.48229
  Prefactor  = 0.824722
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.259     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5630        2.1021        .74966E-04   -1.5281    
   2  Index1        .42037E-10    1.5323        .31098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4823        .31958        .33114E-03   -.78277    
   4  Prefactor     .82472        .17385        .23136E-03   -.98823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68327e-11
Minuit parameter uncertainties:
  1  2.10215
  2  1.64926e-05
  3  0.320013
  4  0.173968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763182': 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) = 6161.25938952
delta logL = 0.624626360146

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.563e+00  2.102e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  4.204e-11  1.649e-05  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.247e-01  1.740e-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.482e+00  3.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.24
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.78e-08 +/- 1.74e-08
Energy Flux (Free Index): 6.46e-05 +/- 2.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/763182/cmap_HighResolution_327974401_328233601_4FGL_J1231.1-1412_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.43e-08', energy_flux2='6.46e-05', photon_flux_error='2.89e-08', dlogl='6.25e-01', energy_flux='5.52e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-09-05 22:05:02.538109', photon_index_error2='0.00', photon_index2='0.00', ts='25.03', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='1.47', time_epoch_completed='1630904702.54', return_code='0', job_id='763182', GAL2='0.82', EG2='1.48', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='1.74e-08', ts2='26.24', photon_index='0.63' WHERE bin_id='342' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 763182: <4FGL_J1231.1-1412_daily_bin342> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin342 187.798 -14.2014 327974401 328233601 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 :                                   684.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            884 sec.

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

