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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1017
RA = 187.798, Dec = -14.2014
tmin = 502934401, tmax = 503193601
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='766754', job_status='RUN', time_executed='2021-09-05 22:03:25.166842', time_epoch_executed='1630904605.17' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766754/ft1_4FGL_J1231.1-1412_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766754/ft1_4FGL_J1231.1-1412_daily_bin1017.fits outfile=/scratch/kocevski/766754/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1017.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=502934401.0 tmax=503193601.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 4.02
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.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/766754/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/766754/ft1_filtered_4FGL_J1231.1-1412_daily_bin1017.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.57
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766754/ft1_filtered_4FGL_J1231.1-1412_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/766754/ltcube_502934401_503193601_4FGL_J1231.1-1412_daily_bin1017.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/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.fits
.....................!
real 15.88
user 15.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766754/ft1_filtered_4FGL_J1231.1-1412_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/766754/ltcube_502934401_503193601_4FGL_J1231.1-1412_daily_bin1017.fits outfile=/scratch/kocevski/766754/expmap_502934401_503193601_4FGL_J1231.1-1412_daily_bin1017.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/766754/ltcube_502934401_503193601_4FGL_J1231.1-1412_daily_bin1017.fits
.....................!
real 191.50
user 186.28
sys 4.58

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/766754/ft1_filtered_4FGL_J1231.1-1412_daily_bin1017.fits scfile=/scratch/kocevski/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.fits outfile=/scratch/kocevski/766754/cmap_502934401_503193601_4FGL_J1231.1-1412_daily_bin1017.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.60
user 0.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766754/ft1_filtered_4FGL_J1231.1-1412_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/766754/ft2_4FGL_J1231.1-1412_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766754/Model_4FGL_J1231.1-1412_daily_bin1017.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/766754/ft1_filtered_4FGL_J1231.1-1412_daily_bin1017.fits.....................!
real 66.23
user 64.68
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.439       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7299       1.0000         .10000E-03   10000.    
     4 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.770       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11800E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.668       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5783       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8510       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5240       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80942       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=   7875.695     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2517 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68892        3.0791       -.15281E-05   -.17999E-03
   2  Prefactor     19.444        18.465        .10571E-05    .12809E-03
   3  Prefactor     6.7280        17.176        .12148E-05    .16251E-04
   4  norm          .10000E-03    2.0653       -.36383E-07** at limit **
   5  Prefactor     27.193        28.506        .39252E-06    .28245E-04
   6  Prefactor     26.434        17.638        .14422E-06    .79414E-04
   7  Prefactor     .10000E-03    10.894       -.14341E-06** at limit **
   8  Prefactor     54.745        58.909        .19483E-05    .23664E-04
   9  Prefactor     .10000E-03    12.704        .32116E-05** at limit **
  10  Prefactor     .10000E-03    35.715        .47891E-05** at limit **
  11  Prefactor     .10000E-03    5.6372       -.97322E-07** at limit **
  12  Prefactor     8.0043        2.6260        .19155E-06    .14903E-03
  13  Prefactor     10.720        13.120        .49447E-07    .63294E-05
  14  Prefactor     15.117        10.935        .57675E-07    .43628E-04
  15  Prefactor     71.675        46.445       -.44590E-06   -.84533E-05
  16  Prefactor     .10000E-03    30.746       -.42722E-07** at limit **
  17  norm          1.5781        .33472        .24765E-07    .47789E-03
  18  norm          .10000E-03    2.0779       -.82790E-08** at limit **
  19  norm          3.8513        4.0264       -.62320E-06    .12400E-04
  20  Prefactor     1.1178        4.1447        .29721E-05   -.58573E-04
  21  Prefactor     .10000E-03    5.9495       -.29552E-06** at limit **
  22  Normalizat    1.5241        .24885        .21360E-05   -.68070E-04
  23  Prefactor     .80941        .13159       -.14910E-05    .30060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.688925
  Prefactor  = 19.4441
  Prefactor  = 6.72803
  norm       = 0.0001
  Prefactor  = 27.1932
  Prefactor  = 26.4341
  Prefactor  = 0.0001
  Prefactor  = 54.7447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.00433
  Prefactor  = 10.7202
  Prefactor  = 15.1171
  Prefactor  = 71.6748
  Prefactor  = 0.0001
  norm       = 1.5781
  norm       = 0.0001
  norm       = 3.85125
  Prefactor  = 1.11784
  Prefactor  = 0.0001
  Normalizat = 1.5241
  Prefactor  = 0.809408
 **********
 **   18 **HESSE 
 **********

 FCN=   7875.695     FROM HESSE     STATUS=OK           370 CALLS     2887 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68892        3.0729        .29642E-03   -1.5542    
   2  Prefactor     19.444        18.464        .90843E-04   -1.4826    
   3  Prefactor     6.7280        17.155        .15467E-03   -1.5189    
   4  norm          .10000E-03    2.0687        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.193        28.496        .76828E-04   -1.4665    
   6  Prefactor     26.434        17.721        .77918E-04   -1.4679    
   7  Prefactor     .10000E-03    10.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.745        58.613        .54200E-04   -1.4227    
   9  Prefactor     .10000E-03    12.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0043        2.6211        .79468E-04   -1.5142    
  13  Prefactor     10.720        13.124        .12236E-03   -1.5053    
  14  Prefactor     15.117        10.967        .10302E-03   -1.4930    
  15  Prefactor     71.675        46.607        .47421E-04   -1.4013    
  16  Prefactor     .10000E-03    30.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5781        .33694        .22168E-04   -1.5457    
  18  norm          .10000E-03    2.0816        .12493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8513        4.0377        .16914E-03   -1.5315    
  20  Prefactor     1.1178        4.1669        .16284E-02   -1.5497    
  21  Prefactor     .10000E-03    5.9793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5241        .28362        .31819E-03   -.77103    
  23  Prefactor     .80941        .15006        .22846E-03   -.99382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91411e-09
Minuit parameter uncertainties:
  1  2.91
  2  18.4694
  3  17.1674
  4  1.70713e-05
  5  28.51
  6  17.7248
  7  7.38881e-06
  8  58.6747
  9  4.94969e-05
  10  0.000228507
  11  2.4551e-05
  12  2.62114
  13  13.1274
  14  10.9689
  15  46.6308
  16  0.000115217
  17  0.336939
  18  6.90533e-07
  19  4.03797
  20  4.16801
  21  1.08248e-05
  22  0.283915
  23  0.150131
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.004e+00  2.621e+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.094e-01  1.501e-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.524e+00  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.47
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 8.65e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 7.42e-05 +/- 2.43e-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) = 7875.52836808
delta logL = 0.166558068784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7875.49752447
delta logL = 0.19740167655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7753       1.0000         .10000E-03   10000.    
     2 'Index1    '    .39014       1.0000          .0000       10.000    
     3 'Normalizat'    1.5336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80950       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=   7875.498     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7753        4.0442        .35951E-02   -.53384E-02
   2  Index1        .39013        .48049        .37666        .24222E-04
   3  Normalizat    1.5336        .23215        .71753E-01    .12265E-04
   4  Prefactor     .80949        .12529        .43841E-01    .14907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77529
  Index1     = 0.390128
  Normalizat = 1.53363
  Prefactor  = 0.809491
 **********
 **   18 **HESSE 
 **********

 FCN=   7875.498     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7753        2.7021        .80236E-04   -1.5150    
   2  Index1        .39013        .38607        .13682E-01   -1.1731    
   3  Normalizat    1.5336        .26832        .31746E-03   -.76838    
   4  Prefactor     .80949        .14715        .22852E-03   -.99379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78521e-09
Minuit parameter uncertainties:
  1  2.70214
  2  0.388679
  3  0.268574
  4  0.14722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766754': 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) = 7875.49752445
delta logL = 0.197401700114

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.775e+00  2.702e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.901e-01  3.887e-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.095e-01  1.472e-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.534e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.79
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.39 +/- 0.39
Photon Flux (Free Index): 7.21e-08 +/- 3.21e-08
Energy Flux (Free Index): 8.08e-05 +/- 2.93e-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/766754/cmap_HighResolution_502934401_503193601_4FGL_J1231.1-1412_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.65e-08', energy_flux2='8.08e-05', photon_flux_error='2.83e-08', dlogl='1.97e-01', energy_flux='7.42e-05', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-09-05 22:15:19.590055', photon_index_error2='0.39', photon_index2='0.39', ts='37.47', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='1.52', time_epoch_completed='1630905319.59', return_code='0', job_id='766754', GAL2='0.81', EG2='1.53', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='3.21e-08', ts2='37.79', photon_index='0.63' WHERE bin_id='1017' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:15:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 766754: <4FGL_J1231.1-1412_daily_bin1017> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1017 187.798 -14.2014 502934401 503193601 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 :                                   707.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            872 sec.

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

