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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin380
RA = 187.798, Dec = -14.2014
tmin = 337824001, tmax = 338083201
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='763238', job_status='RUN', time_executed='2021-09-05 21:52:45.261503', time_epoch_executed='1630903965.26' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763238/ft1_4FGL_J1231.1-1412_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763238/ft1_4FGL_J1231.1-1412_daily_bin380.fits outfile=/scratch/kocevski/763238/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin380.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=337824001.0 tmax=338083201.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.62
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763238/ft1_filtered_4FGL_J1231.1-1412_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/763238/ltcube_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.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/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits
.....................!
real 17.52
user 17.08
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763238/ft1_filtered_4FGL_J1231.1-1412_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/763238/ltcube_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.fits outfile=/scratch/kocevski/763238/expmap_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.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/763238/ltcube_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.fits
.....................!
real 193.48
user 187.26
sys 5.50

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/763238/ft1_filtered_4FGL_J1231.1-1412_daily_bin380.fits scfile=/scratch/kocevski/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits outfile=/scratch/kocevski/763238/cmap_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763238/ft1_filtered_4FGL_J1231.1-1412_daily_bin380.fits scfile=/scratch/kocevski/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits outfile=/scratch/kocevski/763238/cmap_HighResolution_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763238/ft1_filtered_4FGL_J1231.1-1412_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/763238/ft2_4FGL_J1231.1-1412_daily_bin380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763238/Model_4FGL_J1231.1-1412_daily_bin380.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/763238/ft1_filtered_4FGL_J1231.1-1412_daily_bin380.fits.....................!
real 60.77
user 59.33
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.236       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16351E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    110.06       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.269       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5196       1.0000         .10000E-03   10000.    
    18 'norm      '    16.365       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3298       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89506       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=   7356.742     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2529 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4994        6.2253        .12871E-05   -.64804E-04
   2  Prefactor     17.134        23.629       -.92767E-06   -.40119E-06
   3  Prefactor     12.236        14.448       -.10908E-05   -.68415E-05
   4  norm          3.2851        4.5325        .17824E-05   -.11360E-03
   5  Prefactor     .10000E-03    72.829       -.72303E-06** at limit **
   6  Prefactor     16.073        20.135       -.14572E-06    .21987E-06
   7  Prefactor     110.06        60.149        .27373E-06   -.55866E-05
   8  Prefactor     .10000E-03    33.171       -.24329E-06** at limit **
   9  Prefactor     .10001E-03    36.912       -.37583E-05** at limit **
  10  Prefactor     16.050        33.291        .44138E-05   -.46713E-04
  11  Prefactor     .10000E-03    1.9619        .37380E-08** at limit **
  12  Prefactor     4.8927        2.2573        .90219E-08   -.13284E-04
  13  Prefactor     .10000E-03    6.3888        .60016E-07** at limit **
  14  Prefactor     21.766        15.012        .27572E-06   -.15161E-04
  15  Prefactor     13.261        35.601        .14106E-05   -.11988E-04
  16  Prefactor     .10000E-03    19.526       -.35104E-07** at limit **
  17  norm          1.5198        .34017        .41711E-08    .22785E-03
  18  norm          16.363        8.8650        .48682E-07   -.18792E-05
  19  norm          .10000E-03    6.0712        .68379E-07** at limit **
  20  Prefactor     .10000E-03    2.2209        .28789E-07** at limit **
  21  Prefactor     .10000E-03    5.3501        .31098E-07** at limit **
  22  Normalizat    1.3292        .24143       -.90957E-06   -.61665E-05
  23  Prefactor     .89537        .12672       -.97680E-07    .10199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49939
  Prefactor  = 17.1338
  Prefactor  = 12.2359
  norm       = 3.28514
  Prefactor  = 0.0001
  Prefactor  = 16.0734
  Prefactor  = 110.058
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 16.0502
  Prefactor  = 0.0001
  Prefactor  = 4.89268
  Prefactor  = 0.0001
  Prefactor  = 21.7663
  Prefactor  = 13.2606
  Prefactor  = 0.0001
  norm       = 1.51977
  norm       = 16.3631
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3292
  Prefactor  = 0.895365
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.742     FROM HESSE     STATUS=OK           374 CALLS     2903 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4994        6.2095        .78713E-03   -1.5198    
   2  Prefactor     17.134        23.631        .96767E-04   -1.4880    
   3  Prefactor     12.236        14.435        .11452E-03   -1.5008    
   4  norm          3.2851        4.5340        .97357E-03   -1.5345    
   5  Prefactor     .10000E-03    73.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.073        20.181        .99892E-04   -1.4906    
   7  Prefactor     110.06        60.135        .19170E-03   -1.3606    
   8  Prefactor     .10000E-03    33.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    38.414        .21241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.050        33.356        .99865E-04   -1.4906    
  11  Prefactor     .10000E-03    1.9665        .11729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8927        2.2579        .84611E-04   -1.5266    
  13  Prefactor     .10000E-03    6.4146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.766        15.110        .85865E-04   -1.4775    
  15  Prefactor     13.261        35.786        .10996E-03   -1.4980    
  16  Prefactor     .10000E-03    19.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5198        .34322        .22035E-04   -1.5461    
  18  norm          16.363        8.8710        .99008E-04   -1.4899    
  19  norm          .10000E-03    6.3284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2370        .12481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3292        .28229        .33858E-03   -.82699    
  23  Prefactor     .89537        .14775        .21921E-03   -.96303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97289e-10
Minuit parameter uncertainties:
  1  6.21009
  2  23.6437
  3  14.4393
  4  4.53448
  5  9.02256e-06
  6  20.1899
  7  60.1683
  8  5.80727e-05
  9  0.00126615
  10  33.3951
  11  3.80814e-07
  12  2.25795
  13  1.99996e-06
  14  15.1122
  15  35.8437
  16  5.85288e-06
  17  0.343219
  18  8.87172
  19  1.61861e-05
  20  2.13556e-06
  21  3.01096e-06
  22  0.282619
  23  0.147814
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.893e+00  2.258e+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.954e-01  1.478e-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.329e+00  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.54
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.29e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 2.09e-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) = 7356.70476755
delta logL = 0.0372228570923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7356.70438045
delta logL = 0.0376099593095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8703       1.0000         .10000E-03   10000.    
     2 'Index1    '    .48341       1.0000          .0000       10.000    
     3 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89419       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=   7356.704     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8702        2.2574        .84734E-04   -.16449E-03
   2  Index1        .48340        .52072        .16842E-01    .20030E-04
   3  Normalizat    1.3343        .26452        .33804E-03    .64033E-04
   4  Prefactor     .89426        .14497        .21933E-03    .73709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.87023
  Index1     = 0.483397
  Normalizat = 1.33433
  Prefactor  = 0.894264
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.704     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8702        2.2625        .33894E-05   -1.5267    
   2  Index1        .48340        .52178        .67367E-03   -1.1274    
   3  Normalizat    1.3343        .26471        .13522E-04   -.82547    
   4  Prefactor     .89426        .14510        .87731E-05   -.96342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81032e-11
Minuit parameter uncertainties:
  1  2.26254
  2  0.527074
  3  0.264984
  4  0.145163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763238': 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) = 7356.70438033
delta logL = 0.0376100801132

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.870e+00  2.263e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  4.834e-01  5.271e-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.943e-01  1.452e-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.334e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.59
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.48 +/- 0.53
Photon Flux (Free Index): 4.76e-08 +/- 2.84e-08
Energy Flux (Free Index): 4.81e-05 +/- 2.44e-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/763238/cmap_HighResolution_337824001_338083201_4FGL_J1231.1-1412_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='4.81e-05', photon_flux_error='2.44e-08', dlogl='3.76e-02', energy_flux='4.54e-05', photon_flux2='4.76e-08', job_status='DONE', time_completed='2021-09-05 22:04:13.305835', photon_index_error2='0.53', photon_index2='0.48', ts='12.54', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.33', time_epoch_completed='1630904653.31', return_code='0', job_id='763238', GAL2='0.89', EG2='1.33', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='2.84e-08', ts2='12.59', photon_index='0.63' WHERE bin_id='380' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:04:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 763238: <4FGL_J1231.1-1412_daily_bin380> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin380 187.798 -14.2014 337824001 338083201 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 :                                   682.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            833 sec.

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

