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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin939
RA = 187.798, Dec = -14.2014
tmin = 482716801, tmax = 482976001
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='766643', job_status='RUN', time_executed='2021-09-05 22:04:44.158873', time_epoch_executed='1630904684.16' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766643/ft1_4FGL_J1231.1-1412_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766643/ft2_4FGL_J1231.1-1412_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766643/ft1_4FGL_J1231.1-1412_daily_bin939.fits outfile=/scratch/kocevski/766643/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin939.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=482716801.0 tmax=482976001.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.68
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766643/ft2_4FGL_J1231.1-1412_daily_bin939.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/766643/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin939.fits evtable="EVENTS" outfile="/scratch/kocevski/766643/ft1_filtered_4FGL_J1231.1-1412_daily_bin939.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766643/ft1_filtered_4FGL_J1231.1-1412_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/766643/ft2_4FGL_J1231.1-1412_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/766643/ltcube_482716801_482976001_4FGL_J1231.1-1412_daily_bin939.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/766643/ft2_4FGL_J1231.1-1412_daily_bin939.fits
.....................!
real 16.06
user 15.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766643/ft1_filtered_4FGL_J1231.1-1412_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/766643/ft2_4FGL_J1231.1-1412_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/766643/ltcube_482716801_482976001_4FGL_J1231.1-1412_daily_bin939.fits outfile=/scratch/kocevski/766643/expmap_482716801_482976001_4FGL_J1231.1-1412_daily_bin939.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/766643/ltcube_482716801_482976001_4FGL_J1231.1-1412_daily_bin939.fits
.....................!
real 192.43
user 186.76
sys 5.12

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/766643/ft1_filtered_4FGL_J1231.1-1412_daily_bin939.fits scfile=/scratch/kocevski/766643/ft2_4FGL_J1231.1-1412_daily_bin939.fits outfile=/scratch/kocevski/766643/cmap_482716801_482976001_4FGL_J1231.1-1412_daily_bin939.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.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766643/ft1_filtered_4FGL_J1231.1-1412_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/766643/ft2_4FGL_J1231.1-1412_daily_bin939.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766643/Model_4FGL_J1231.1-1412_daily_bin939.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/766643/ft1_filtered_4FGL_J1231.1-1412_daily_bin939.fits.....................!
real 62.23
user 60.08
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.271       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    91.845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14643E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .97489       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7054       1.0000         .10000E-03   10000.    
    19 'norm      '    25.925       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7727       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67994       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=   7340.271     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2231 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0065        .27394E-06** at limit **
   2  Prefactor     13.772        13.340        .23172E-06   -.31094E-04
   3  Prefactor     .10000E-03    21.662       -.49893E-06** at limit **
   4  norm          10.826        5.1515        .24344E-06   -.52886E-04
   5  Prefactor     .10005E-03    235.53        .11146E-04** at limit **
   6  Prefactor     .10000E-03    39.397        .40216E-06** at limit **
   7  Prefactor     17.988        46.259        .65014E-05   -.10217E-04
   8  Prefactor     .10000E-03    24.948        .37781E-06** at limit **
   9  Prefactor     .10000E-03    12.968        .17131E-07** at limit **
  10  Prefactor     .10000E-03    28.727        .66602E-07** at limit **
  11  Prefactor     5.4548        8.2508        .66779E-05   -.41206E-03
  12  Prefactor     9.7224        3.1878       -.68611E-06   -.22554E-04
  13  Prefactor     29.271        14.962        .36974E-07    .13206E-04
  14  Prefactor     .10000E-03    9.1673       -.30830E-06** at limit **
  15  Prefactor     91.856        58.242        .52320E-06    .43329E-04
  16  Prefactor     .10030E-03    376.50       -.17275E-04** at limit **
  17  norm          .97484        .31407        .12653E-07   -.16289E-03
  18  norm          7.7053        8.6317        .24081E-06    .11970E-05
  19  norm          25.922        8.0405       -.64472E-06    .29339E-03
  20  Prefactor     .10000E-03    2.3201        .61556E-07** at limit **
  21  Prefactor     .10000E-03    14.928        .16597E-06** at limit **
  22  Normalizat    1.7727        .24444       -.14594E-05    .82191E-06
  23  Prefactor     .67995        .12974       -.58949E-06   -.67017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.7723
  Prefactor  = 0.0001
  norm       = 10.8255
  Prefactor  = 0.000100046
  Prefactor  = 0.000100001
  Prefactor  = 17.9885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4548
  Prefactor  = 9.72244
  Prefactor  = 29.2709
  Prefactor  = 0.0001
  Prefactor  = 91.8561
  Prefactor  = 0.000100303
  norm       = 0.974843
  norm       = 7.70526
  norm       = 25.9217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.77267
  Prefactor  = 0.67995
 **********
 **   18 **HESSE 
 **********

 FCN=   7340.271     FROM HESSE     STATUS=OK           366 CALLS     2597 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1845        .33439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.772        13.339        .10793E-03   -1.4966    
   3  Prefactor     .10000E-03    21.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.826        5.1368        .60885E-03   -1.5050    
   5  Prefactor     .10005E-03    237.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.988        45.846        .94491E-04   -1.4859    
   8  Prefactor     .10000E-03    24.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4548        8.3169        .86021E-03   -1.5241    
  12  Prefactor     9.7224        3.1921        .40379E-03   -1.5084    
  13  Prefactor     29.271        14.965        .74053E-04   -1.4625    
  14  Prefactor     .10000E-03    9.2350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     91.856        58.499        .41932E-04   -1.3788    
  16  Prefactor     .10030E-03    387.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .97484        .31493        .25477E-04   -1.5511    
  18  norm          7.7053        8.6297        .14446E-03   -1.5153    
  19  norm          25.922        8.0067        .78677E-04   -1.4689    
  20  Prefactor     .10000E-03    2.3237        .12733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7727        .28393        .30663E-03   -.70379    
  23  Prefactor     .67995        .15025        .24920E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27609e-09
Minuit parameter uncertainties:
  1  1.13076e-05
  2  13.3417
  3  0.000141164
  4  5.13702
  5  0.0066365
  6  0.000360306
  7  45.9359
  8  0.000190982
  9  2.61997e-06
  10  2.93594e-05
  11  8.31868
  12  3.19215
  13  14.9673
  14  4.01469e-05
  15  58.5361
  16  0.0217945
  17  0.314934
  18  8.63108
  19  8.00701
  20  1.13257e-05
  21  4.4328e-05
  22  0.284191
  23  0.150336
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  9.722e+00  3.192e+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.799e-01  1.503e-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.773e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 53.66
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 3.45e-08
Energy Flux (Fixed Index): 9.01e-05 +/- 2.96e-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) = 7339.47217816
delta logL = 0.798900784324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7339.16179028
delta logL = 1.10928865884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0842       1.0000         .10000E-03   10000.    
     2 'Index1    '    .18457E-05   1.0000          .0000       10.000    
     3 'Normalizat'    1.7900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69112       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=   7339.162     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0853        2.8414        .37679E-02   -.46016E-04
   2  Index1        .19789E-10    .28305        .50000    ** at limit **
   3  Normalizat    1.7900        .23831        .69131E-01   -.40204E-04
   4  Prefactor     .69113        .12855        .42283E-01   -.19735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.08533
  Index1     = 1.97886e-11
  Normalizat = 1.78995
  Prefactor  = 0.691128
 **********
 **   18 **HESSE 
 **********

 FCN=   7339.162     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0853        2.4388        .76184E-04   -1.5176    
   2  Index1        .19789E-10    .70098        .24122E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7900        .27646        .30578E-03   -.69926    
   4  Prefactor     .69113        .14902        .24790E-03   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97268e-11
Minuit parameter uncertainties:
  1  2.43879
  2  7.53873e-06
  3  0.276704
  4  0.149104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766643': 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) = 7339.16178876
delta logL = 1.10929018087

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.085e+00  2.439e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.979e-11  7.539e-06  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.911e-01  1.491e-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.790e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.82
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 5.88e-08 +/- 2.02e-08
Energy Flux (Free Index): 1.00e-04 +/- 3.45e-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/766643/cmap_HighResolution_482716801_482976001_4FGL_J1231.1-1412_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='1.00e-04', photon_flux_error='3.45e-08', dlogl='1.11e+00', energy_flux='9.01e-05', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-05 22:15:50.230226', photon_index_error2='0.00', photon_index2='0.00', ts='53.66', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='3.45e-05', EG='1.77', time_epoch_completed='1630905350.23', return_code='0', job_id='766643', GAL2='0.69', EG2='1.79', return_code2='0', energy_flux_error='2.96e-05', photon_flux_error2='2.02e-08', ts2='55.82', photon_index='0.63' WHERE bin_id='939' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:15:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 766643: <4FGL_J1231.1-1412_daily_bin939> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin939> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:41 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:01: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 22:01:22 2021
Terminated at Sun Sep  5 22:15:51 2021
Results reported at Sun Sep  5 22:15:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin939 187.798 -14.2014 482716801 482976001 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 :                                   656.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            910 sec.

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

