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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin172
RA = 187.798, Dec = -14.2014
tmin = 283910401, tmax = 284169601
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='761783', job_status='RUN', time_executed='2021-09-05 21:48:17.358782', time_epoch_executed='1630903697.36' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761783/ft1_4FGL_J1231.1-1412_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761783/ft1_4FGL_J1231.1-1412_daily_bin172.fits outfile=/scratch/kocevski/761783/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin172.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=283910401.0 tmax=284169601.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.70
user 3.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761783/ft1_filtered_4FGL_J1231.1-1412_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/761783/ltcube_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.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/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits
.....................!
real 16.51
user 15.98
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761783/ft1_filtered_4FGL_J1231.1-1412_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/761783/ltcube_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.fits outfile=/scratch/kocevski/761783/expmap_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.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/761783/ltcube_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.fits
.....................!
real 193.26
user 187.51
sys 4.90

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/761783/ft1_filtered_4FGL_J1231.1-1412_daily_bin172.fits scfile=/scratch/kocevski/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits outfile=/scratch/kocevski/761783/cmap_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.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.62
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761783/ft1_filtered_4FGL_J1231.1-1412_daily_bin172.fits scfile=/scratch/kocevski/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits outfile=/scratch/kocevski/761783/cmap_HighResolution_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.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.57
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761783/ft1_filtered_4FGL_J1231.1-1412_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/761783/ft2_4FGL_J1231.1-1412_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761783/Model_4FGL_J1231.1-1412_daily_bin172.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/761783/ft1_filtered_4FGL_J1231.1-1412_daily_bin172.fits.....................!
real 80.56
user 78.41
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3690       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.9642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.647       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7718       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4329       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4080       1.0000         .10000E-03   10000.    
    18 'norm      '    .78142       1.0000         .10000E-03   10000.    
    19 'norm      '    5.5029       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1597       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8279       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1165       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93449       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10427.58     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1827 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3688        1.6216        .78586E-08    .14262E-04
   2  Prefactor     .10000E-03    4.7013       -.50770E-07** at limit **
   3  Prefactor     .10004E-03    20.044        .28536E-05** at limit **
   4  norm          7.9619        3.5952       -.41466E-07   -.10159E-03
   5  Prefactor     .10150E-03    27.730       -.32901E-05** at limit **
   6  Prefactor     5.1969        2.9473       -.49436E-06    .34438E-03
   7  Prefactor     31.615        11.867        .91373E-06   -.12228E-01
   8  Prefactor     .10131E-03    29.492        .12588E-05** at limit **
   9  Prefactor     .10000E-03    14.753       -.39827E-06** at limit **
  10  Prefactor     13.923        5.2631       -.61296E-06    .37859E-02
  11  Prefactor     .10000E-03    1.0551       -.79142E-07** at limit **
  12  Prefactor     5.4359        1.6930        .61635E-09    .53090E-04
  13  Prefactor     .10000E-03    3.5919       -.51016E-07** at limit **
  14  Prefactor     8.7667        6.0096        .58080E-06    .25184E-03
  15  Prefactor     .10002E-03    15.857       -.54319E-06** at limit **
  16  Prefactor     2.1144        427.21        .53933E-05    .43340E-03
  17  norm          1.4080        .25661        .82994E-08    .41529E-03
  18  norm          .78117        7.3531        .11538E-05    .11422E-03
  19  norm          5.5052        4.6698        .43744E-06    .95526E-03
  20  Prefactor     3.1592        4.0430        .48681E-06    .24702E-03
  21  Prefactor     3.8272        1.0421       -.24080E-07    .20380E-03
  22  Normalizat    1.1164        .20645       -.26131E-06    .10445E-03
  23  Prefactor     .93453        .11796        .13432E-06    .19719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36885
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 7.96189
  Prefactor  = 0.000101497
  Prefactor  = 5.19689
  Prefactor  = 31.6153
  Prefactor  = 0.000101311
  Prefactor  = 0.000100004
  Prefactor  = 13.9225
  Prefactor  = 0.0001
  Prefactor  = 5.43592
  Prefactor  = 0.0001
  Prefactor  = 8.76668
  Prefactor  = 0.000100022
  Prefactor  = 2.11437
  norm       = 1.40803
  norm       = 0.781175
  norm       = 5.50518
  Prefactor  = 3.15924
  Prefactor  = 3.82722
  Normalizat = 1.1164
  Prefactor  = 0.934532
 **********
 **   18 **HESSE 
 **********

 FCN=   10427.58     FROM HESSE     STATUS=OK           420 CALLS     2247 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3688        1.6411        .93183E-02   -1.5474    
   2  Prefactor     .10000E-03    4.6780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    19.728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.9619        3.6233        .35519E-02   -1.5144    
   5  Prefactor     .10150E-03    30.158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1969        13.247        .44133E-02   -1.5252    
   7  Prefactor     31.615        28.016        .17806E-02   -1.4583    
   8  Prefactor     .10131E-03    31.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.923        30.621        .26848E-02   -1.4962    
  11  Prefactor     .10000E-03    1.0490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4359        1.6931        .43087E-02   -1.5242    
  13  Prefactor     .10000E-03    3.5563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7667        6.0210        .33834E-02   -1.5116    
  15  Prefactor     .10002E-03    15.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1144        492.71        .65586E-02   -1.5417    
  17  norm          1.4080        .25617        .47886E-02   -1.5471    
  18  norm          .78117        7.2373        .12370E-01   -1.5531    
  19  norm          5.5052        4.8510        .42820E-02   -1.5239    
  20  Prefactor     3.1592        4.0992        .57005E-02   -1.5352    
  21  Prefactor     3.8272        7.6942        .51572E-02   -1.5317    
  22  Normalizat    1.1164        .17736        .71184E-01   -.89227    
  23  Prefactor     .93453        .99799E-01    .45443E-01   -.94945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14257e-07
Minuit parameter uncertainties:
  1  1.64119
  2  4.53445e-06
  3  0.00182001
  4  3.62342
  5  0.0134436
  6  13.2544
  7  28.0272
  8  0.0129284
  9  0.000511706
  10  30.655
  11  1.89337e-06
  12  1.69316
  13  2.54646e-06
  14  6.02143
  15  0.00117278
  16  65.101
  17  0.256169
  18  4.75593
  19  4.85138
  20  4.09959
  21  7.69617
  22  0.177454
  23  0.0998187
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.436e+00  1.693e+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.345e-01  9.982e-02  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.116e+00  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.27
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 5.04e-05 +/- 1.57e-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) = 10427.5780201
delta logL = 0.00275792410685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10427.5779616
delta logL = 0.00281645942232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4464       1.0000         .10000E-03   10000.    
     2 'Index1    '    .60332       1.0000          .0000       10.000    
     3 'Normalizat'    1.1172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93443       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=   10427.58     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4464        1.7045        .72317E-04    .38390E-03
   2  Index1        .60332        .33208        .11315E-01    .21115E-04
   3  Normalizat    1.1172        .20197        .31489E-03    .25345E-04
   4  Prefactor     .93443        .11663        .19566E-03   -.14991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44645
  Index1     = 0.60332
  Normalizat = 1.11719
  Prefactor  = 0.934433
 **********
 **   18 **HESSE 
 **********

 FCN=   10427.58     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4464        1.7022        .28927E-05   -1.5241    
   2  Index1        .60332        .33164        .45261E-03   -1.0745    
   3  Normalizat    1.1172        .20213        .12596E-04   -.89202    
   4  Prefactor     .93443        .11674        .78265E-05   -.94948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38061e-11
Minuit parameter uncertainties:
  1  1.70225
  2  0.332719
  3  0.202272
  4  0.116768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761783': 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) = 10427.5779616
delta logL = 0.00281645942414

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.446e+00  1.702e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.033e-01  3.327e-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.344e-01  1.168e-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.117e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.24
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.60 +/- 0.33
Photon Flux (Free Index): 5.77e-08 +/- 2.22e-08
Energy Flux (Free Index): 5.10e-05 +/- 1.76e-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/761783/cmap_HighResolution_283910401_284169601_4FGL_J1231.1-1412_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='5.10e-05', photon_flux_error='1.83e-08', dlogl='2.82e-03', energy_flux='5.04e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2021-09-05 22:01:04.115410', photon_index_error2='0.33', photon_index2='0.60', ts='39.27', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.12', time_epoch_completed='1630904464.12', return_code='0', job_id='761783', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.22e-08', ts2='39.24', photon_index='0.63' WHERE bin_id='172' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 761783: <4FGL_J1231.1-1412_daily_bin172> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin172> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:45:38 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:45:48 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:45:48 2021
Terminated at Sun Sep  5 22:01:04 2021
Results reported at Sun Sep  5 22:01:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin172 187.798 -14.2014 283910401 284169601 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 :                                   761.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            926 sec.

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

