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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin307
RA = 187.798, Dec = -14.2014
tmin = 318902401, tmax = 319161601
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='762057', job_status='RUN', time_executed='2021-09-05 21:50:12.587081', time_epoch_executed='1630903812.59' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/762057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/762057/ft1_4FGL_J1231.1-1412_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/762057/ft2_4FGL_J1231.1-1412_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/762057/ft1_4FGL_J1231.1-1412_daily_bin307.fits outfile=/scratch/kocevski/762057/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin307.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=318902401.0 tmax=319161601.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.81
user 3.17
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/762057/ft1_filtered_4FGL_J1231.1-1412_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/762057/ft2_4FGL_J1231.1-1412_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/762057/ltcube_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.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/762057/ft2_4FGL_J1231.1-1412_daily_bin307.fits
.....................!
real 15.40
user 14.97
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/762057/ft1_filtered_4FGL_J1231.1-1412_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/762057/ft2_4FGL_J1231.1-1412_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/762057/ltcube_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.fits outfile=/scratch/kocevski/762057/expmap_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.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/762057/ltcube_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.fits
.....................!
real 191.17
user 185.36
sys 5.33

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/762057/ft1_filtered_4FGL_J1231.1-1412_daily_bin307.fits scfile=/scratch/kocevski/762057/ft2_4FGL_J1231.1-1412_daily_bin307.fits outfile=/scratch/kocevski/762057/cmap_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/762057/ft1_filtered_4FGL_J1231.1-1412_daily_bin307.fits scfile=/scratch/kocevski/762057/ft2_4FGL_J1231.1-1412_daily_bin307.fits outfile=/scratch/kocevski/762057/cmap_HighResolution_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.071       1.0000         .10000E-03   10000.    
     4 'norm      '    .11023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17465E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    221.66       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2906       1.0000         .10000E-03   10000.    
    18 'norm      '    .22876E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10844E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7360       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .61450       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=   5871.318     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     3003 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5498        .56991E-07** at limit **
   2  Prefactor     .10000E-03    28.461       -.21651E-06** at limit **
   3  Prefactor     36.036        25.222        .96788E-06    .81764E-04
   4  norm          .10000E-03    9.2773       -.25084E-05** at limit **
   5  Prefactor     .10000E-03    17.738        .17944E-06** at limit **
   6  Prefactor     10.488        17.048       -.31192E-07   -.45200E-05
   7  Prefactor     15.866        32.120        .86757E-07    .24883E-04
   8  Prefactor     56.251        82.018       -.50688E-05   -.23320E-04
   9  Prefactor     .10000E-03    103.52       -.21170E-05** at limit **
  10  Prefactor     .10000E-03    38.999        .12653E-06** at limit **
  11  Prefactor     7.8270        6.3462        .34734E-08   -.47460E-05
  12  Prefactor     4.8732        2.3509       -.63114E-08   -.23569E-04
  13  Prefactor     .10000E-03    8.6273       -.35489E-06** at limit **
  14  Prefactor     .10000E-03    5.4689        .10776E-06** at limit **
  15  Prefactor     .10000E-03    55.813        .22260E-06** at limit **
  16  Prefactor     221.58        99.876        .57239E-06   -.67801E-05
  17  norm          1.2905        .33329       -.61976E-08   -.10823E-03
  18  norm          .10053E-03    5.6887        .17004E-05** at limit **
  19  norm          .10000E-03    6.7706       -.44279E-05** at limit **
  20  Prefactor     .10000E-03    2.0184       -.59577E-06** at limit **
  21  Prefactor     .10000E-03    7.5813        .18178E-06** at limit **
  22  Normalizat    1.7365        .26134        .49968E-06   -.76008E-04
  23  Prefactor     .61428        .13733       -.44596E-06   -.55431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.0364
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4882
  Prefactor  = 15.8658
  Prefactor  = 56.2508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.82696
  Prefactor  = 4.8732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 221.584
  norm       = 1.29049
  norm       = 0.000100534
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.73646
  Prefactor  = 0.614275
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.318     FROM HESSE     STATUS=OK           366 CALLS     3369 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5579        .93137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.036        25.313        .66728E-04   -1.4507    
   4  norm          .10000E-03    9.3939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.488        17.084        .12365E-03   -1.5060    
   7  Prefactor     15.866        32.094        .10059E-03   -1.4911    
   8  Prefactor     56.251        81.403        .53487E-04   -1.4207    
   9  Prefactor     .10000E-03    105.57        .40694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8270        6.3559        .14332E-03   -1.5148    
  12  Prefactor     4.8732        2.3538        .77744E-04   -1.5266    
  13  Prefactor     .10000E-03    8.6640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4860        .17497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     221.58        99.798        .13585E-03   -1.2720    
  17  norm          1.2905        .33394        .21562E-04   -1.5481    
  18  norm          .10053E-03    49.896        .31644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.9240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0223        .10630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7365        .30920        .28877E-03   -.71334    
  23  Prefactor     .61428        .16161        .24149E-03   -1.0699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04212e-08
Minuit parameter uncertainties:
  1  8.40913e-07
  2  0.000145469
  3  25.32
  4  6.65561e-05
  5  2.63953e-05
  6  17.0919
  7  32.1284
  8  81.5641
  9  2.08513e-05
  10  0.000246476
  11  6.35646
  12  2.3538
  13  3.36627e-05
  14  2.71202e-06
  15  9.05512e-06
  16  99.8751
  17  0.333943
  18  0.0103325
  19  0.000132521
  20  1.04229e-05
  21  1.82142e-05
  22  0.309547
  23  0.161736
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.873e+00  2.354e+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.143e-01  1.617e-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.736e+00  3.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.70
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 4.52e-05 +/- 2.18e-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) = 5871.19979872
delta logL = 0.117916822983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.1899313
delta logL = 0.127784242252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5300       1.0000         .10000E-03   10000.    
     2 'Index1    '    .30882       1.0000          .0000       10.000    
     3 'Normalizat'    1.7446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61452       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=   5871.190     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5296        2.2348        .47288E-02   -.68941E-04
   2  Index1        .30879        .56051        .36920        .53790E-04
   3  Normalizat    1.7446        .25686        .65185E-01    .10584E-05
   4  Prefactor     .61453        .13581        .41252E-01    .20483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5296
  Index1     = 0.30879
  Normalizat = 1.74459
  Prefactor  = 0.614534
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.190     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5296        2.4331        .76885E-04   -1.5282    
   2  Index1        .30879        .62549        .23794E-01   -1.2175    
   3  Normalizat    1.7446        .30097        .28829E-03   -.71119    
   4  Prefactor     .61453        .16017        .24152E-03   -1.0698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03487e-11
Minuit parameter uncertainties:
  1  2.43314
  2  0.639995
  3  0.301292
  4  0.160285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/762057': 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) = 5871.18993128
delta logL = 0.127784256335

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.530e+00  2.433e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.088e-01  6.400e-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.145e-01  1.603e-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.745e+00  3.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.98
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.31 +/- 0.64
Photon Flux (Free Index): 4.05e-08 +/- 2.82e-08
Energy Flux (Free Index): 4.96e-05 +/- 2.61e-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/762057/cmap_HighResolution_318902401_319161601_4FGL_J1231.1-1412_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='4.96e-05', photon_flux_error='2.54e-08', dlogl='1.28e-01', energy_flux='4.52e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-09-05 22:00:52.146515', photon_index_error2='0.64', photon_index2='0.31', ts='17.70', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.74', time_epoch_completed='1630904452.15', return_code='0', job_id='762057', GAL2='0.61', EG2='1.74', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='2.82e-08', ts2='17.98', photon_index='0.63' WHERE bin_id='307' 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@bullet0273>
Subject: Job 762057: <4FGL_J1231.1-1412_daily_bin307> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin307> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:45:53 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:46:22 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:46:22 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_bin307 187.798 -14.2014 318902401 319161601 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 :                                   637.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            900 sec.

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

