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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin749
RA = 187.798, Dec = -14.2014
tmin = 433468801, tmax = 433728001
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='765116', job_status='RUN', time_executed='2021-09-05 21:58:23.718809', time_epoch_executed='1630904303.72' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765116/ft1_4FGL_J1231.1-1412_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765116/ft2_4FGL_J1231.1-1412_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765116/ft1_4FGL_J1231.1-1412_daily_bin749.fits outfile=/scratch/kocevski/765116/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin749.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.12
user 5.77
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765116/ft1_filtered_4FGL_J1231.1-1412_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/765116/ft2_4FGL_J1231.1-1412_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/765116/ltcube_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.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/765116/ft2_4FGL_J1231.1-1412_daily_bin749.fits
.....................!
real 20.92
user 20.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765116/ft1_filtered_4FGL_J1231.1-1412_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/765116/ft2_4FGL_J1231.1-1412_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/765116/ltcube_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.fits outfile=/scratch/kocevski/765116/expmap_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.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/765116/ltcube_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.fits
.....................!
real 192.45
user 187.26
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/765116/ft1_filtered_4FGL_J1231.1-1412_daily_bin749.fits scfile=/scratch/kocevski/765116/ft2_4FGL_J1231.1-1412_daily_bin749.fits outfile=/scratch/kocevski/765116/cmap_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765116/ft1_filtered_4FGL_J1231.1-1412_daily_bin749.fits scfile=/scratch/kocevski/765116/ft2_4FGL_J1231.1-1412_daily_bin749.fits outfile=/scratch/kocevski/765116/cmap_HighResolution_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.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.60
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5486       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0455       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0057       1.0000         .10000E-03   10000.    
    19 'norm      '    14.009       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6854       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97966       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=   7628.226     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2190 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4061        4.6361       -.10971E-06    .10840E-03
   2  Prefactor     .10000E-03    18.799        .19759E-05** at limit **
   3  Prefactor     6.5489        12.595       -.76842E-06    .42504E-03
   4  norm          .10000E-03    1.8539        .44291E-06** at limit **
   5  Prefactor     .10002E-03    27.834        .39193E-05** at limit **
   6  Prefactor     15.037        24.277       -.11846E-06    .49678E-04
   7  Prefactor     .10002E-03    21.481       -.42435E-05** at limit **
   8  Prefactor     .10000E-03    26.249       -.44474E-06** at limit **
   9  Prefactor     .10000E-03    12.326       -.46963E-07** at limit **
  10  Prefactor     .10000E-03    67.217       -.21510E-06** at limit **
  11  Prefactor     .10000E-03    3.6801       -.39889E-07** at limit **
  12  Prefactor     9.3448        2.9448        .42649E-07    .24668E-03
  13  Prefactor     .10000E-03    4.7233       -.12088E-07** at limit **
  14  Prefactor     .10005E-03    81.794        .26231E-04** at limit **
  15  Prefactor     .10005E-03    126.51        .73229E-05** at limit **
  16  Prefactor     .10000E-03    67.607       -.47988E-06** at limit **
  17  norm          1.0456        .27383       -.70182E-08   -.19600E-02
  18  norm          2.0059        6.6476       -.10030E-05    .53638E-04
  19  norm          14.012        6.6612       -.14844E-06   -.10256E-03
  20  Prefactor     .10000E-03    2.5873        .87770E-08** at limit **
  21  Prefactor     .10000E-03    2.2541       -.17884E-07** at limit **
  22  Normalizat    1.6861        .26369        .16502E-05    .23825E-03
  23  Prefactor     .97934        .14170       -.26572E-06    .21650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40614
  Prefactor  = 0.000100004
  Prefactor  = 6.54892
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 15.0365
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34476
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  norm       = 1.04555
  norm       = 2.00593
  norm       = 14.0116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.68608
  Prefactor  = 0.979343
 **********
 **   18 **HESSE 
 **********

 FCN=   7628.226     FROM HESSE     STATUS=OK           364 CALLS     2554 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4061        4.6262        .21266E-03   -1.5339    
   2  Prefactor     .10000E-03    19.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5489        12.726        .78411E-03   -1.5196    
   4  norm          .10000E-03    1.8702        .11652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    28.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.037        24.398        .10323E-03   -1.4932    
   7  Prefactor     .10002E-03    22.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7054        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3448        2.9400        .81433E-04   -1.5096    
  13  Prefactor     .10000E-03    4.7294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    81.072        .45466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    129.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0456        .27379        .22450E-04   -1.5503    
  18  norm          2.0059        6.6437        .29238E-03   -1.5425    
  19  norm          14.012        6.6511        .10701E-03   -1.4959    
  20  Prefactor     .10000E-03    2.5946        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2564        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6861        .31344        .34075E-03   -.72675    
  23  Prefactor     .97934        .16956        .23276E-03   -.93421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66229e-09
Minuit parameter uncertainties:
  1  4.62667
  2  0.000567617
  3  12.7313
  4  4.56161e-05
  5  0.00146356
  6  24.4142
  7  0.00142708
  8  0.000159623
  9  1.41985e-05
  10  0.00015548
  11  1.41285e-05
  12  2.94004
  13  2.78955e-06
  14  0.0040918
  15  0.00525381
  16  0.000157666
  17  0.273789
  18  6.64612
  19  6.6515
  20  1.26912e-05
  21  2.81132e-06
  22  0.313808
  23  0.169649
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  9.345e+00  2.940e+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:  9.793e-01  1.696e-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.686e+00  3.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.57
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 3.18e-08
Energy Flux (Fixed Index): 8.66e-05 +/- 2.73e-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) = 7627.65588357
delta logL = 0.569642148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7627.61780935
delta logL = 0.607716372502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8457       1.0000         .10000E-03   10000.    
     2 'Index1    '    .22171       1.0000          .0000       10.000    
     3 'Normalizat'    1.7049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97751       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=   7627.618     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8457        2.8521        .33692E-02    .39700E-02
   2  Index1        .22157        .32346        .35609        .88131E-04
   3  Normalizat    1.7048        .25727        .76675E-01    .59363E-05
   4  Prefactor     .97757        .13959        .45985E-01    .10073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.84568
  Index1     = 0.221569
  Normalizat = 1.70477
  Prefactor  = 0.977575
 **********
 **   18 **HESSE 
 **********

 FCN=   7627.618     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8457        3.0330        .80567E-04   -1.5113    
   2  Index1        .22157        .37095        .18488E-01   -1.2720    
   3  Normalizat    1.7048        .30545        .33928E-03   -.72176    
   4  Prefactor     .97757        .16664        .23295E-03   -.93481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82264e-09
Minuit parameter uncertainties:
  1  3.03308
  2  0.374992
  3  0.305784
  4  0.166732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765116': 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) = 7627.61780919
delta logL = 0.607716528253

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.846e+00  3.033e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  2.216e-01  3.750e-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:  9.776e-01  1.667e-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.705e+00  3.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.76
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.22 +/- 0.37
Photon Flux (Free Index): 7.65e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.03e-04 +/- 3.70e-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/765116/cmap_HighResolution_433468801_433728001_4FGL_J1231.1-1412_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='1.03e-04', photon_flux_error='3.18e-08', dlogl='6.08e-01', energy_flux='8.66e-05', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-09-05 22:09:40.394588', photon_index_error2='0.37', photon_index2='0.22', ts='34.57', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.70e-05', EG='1.69', time_epoch_completed='1630904980.39', return_code='0', job_id='765116', GAL2='0.98', EG2='1.70', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='3.08e-08', ts2='35.76', photon_index='0.63' WHERE bin_id='749' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 765116: <4FGL_J1231.1-1412_daily_bin749> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin749> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:56:04 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:56:30 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:56:30 2021
Terminated at Sun Sep  5 22:09:41 2021
Results reported at Sun Sep  5 22:09:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin749 187.798 -14.2014 433468801 433728001 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 :                                   671.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            817 sec.

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

