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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin502
RA = 187.798, Dec = -14.2014
tmin = 369446401, tmax = 369705601
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='763413', job_status='RUN', time_executed='2021-09-05 21:54:45.146924', time_epoch_executed='1630904085.15' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763413/ft1_4FGL_J1231.1-1412_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763413/ft2_4FGL_J1231.1-1412_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763413/ft1_4FGL_J1231.1-1412_daily_bin502.fits outfile=/scratch/kocevski/763413/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin502.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=369446401.0 tmax=369705601.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.48
user 3.25
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763413/ft1_filtered_4FGL_J1231.1-1412_daily_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/763413/ft2_4FGL_J1231.1-1412_daily_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/763413/ltcube_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.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/763413/ft2_4FGL_J1231.1-1412_daily_bin502.fits
.....................!
real 16.64
user 16.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763413/ft1_filtered_4FGL_J1231.1-1412_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/763413/ft2_4FGL_J1231.1-1412_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/763413/ltcube_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.fits outfile=/scratch/kocevski/763413/expmap_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.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/763413/ltcube_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.fits
.....................!
real 192.30
user 186.08
sys 4.89

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/763413/ft1_filtered_4FGL_J1231.1-1412_daily_bin502.fits scfile=/scratch/kocevski/763413/ft2_4FGL_J1231.1-1412_daily_bin502.fits outfile=/scratch/kocevski/763413/cmap_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763413/ft1_filtered_4FGL_J1231.1-1412_daily_bin502.fits scfile=/scratch/kocevski/763413/ft2_4FGL_J1231.1-1412_daily_bin502.fits outfile=/scratch/kocevski/763413/cmap_HighResolution_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.728       1.0000         .10000E-03   10000.    
     4 'norm      '    .88624E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.911       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.537       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4157       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.412       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .59367       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.290       1.0000         .10000E-03   10000.    
    22 'Normalizat'    2.0487       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82439       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=   6656.346     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2525 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0330        .26186E-07** at limit **
   2  Prefactor     .10000E-03    9.3956        .17668E-07** at limit **
   3  Prefactor     28.725        27.304       -.10536E-06    .15299E-03
   4  norm          .10034E-03    4.8969       -.34619E-06** at limit **
   5  Prefactor     .10001E-03    28.932       -.46990E-05** at limit **
   6  Prefactor     11.910        19.516        .31299E-06   -.98420E-05
   7  Prefactor     .10001E-03    25.539        .39597E-05** at limit **
   8  Prefactor     .10000E-03    18.958       -.46870E-06** at limit **
   9  Prefactor     .10000E-03    8.7500       -.32321E-07** at limit **
  10  Prefactor     .10001E-03    62.945        .50525E-05** at limit **
  11  Prefactor     10.211        8.9724       -.50978E-06   -.56573E-04
  12  Prefactor     1.9730        1.9023       -.78731E-07   -.90883E-04
  13  Prefactor     19.536        19.224        .19331E-06   -.71704E-05
  14  Prefactor     4.4184        14.474        .87267E-05   -.25185E-03
  15  Prefactor     32.411        31.725       -.29300E-07   -.73997E-05
  16  Prefactor     .10001E-03    128.12       -.49001E-05** at limit **
  17  norm          .59369        .26439        .81122E-08   -.19848E-03
  18  norm          .10000E-03    4.0255        .60319E-08** at limit **
  19  norm          .10000E-03    4.6823        .34443E-07** at limit **
  20  Prefactor     .10000E-03    4.4552        .51658E-07** at limit **
  21  Prefactor     15.291        13.387        .77540E-07   -.28799E-05
  22  Normalizat    2.0484        .28422       -.13279E-05    .33004E-04
  23  Prefactor     .82459        .14701       -.14043E-06   -.41834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7252
  norm       = 0.000100339
  Prefactor  = 0.000100013
  Prefactor  = 11.9101
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 10.2106
  Prefactor  = 1.97297
  Prefactor  = 19.5363
  Prefactor  = 4.41842
  Prefactor  = 32.4113
  Prefactor  = 0.000100013
  norm       = 0.593694
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2909
  Normalizat = 2.04837
  Prefactor  = 0.824594
 **********
 **   18 **HESSE 
 **********

 FCN=   6656.346     FROM HESSE     STATUS=OK           364 CALLS     2889 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0468        .11357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.725        22.674        .74748E-04   -1.4636    
   4  norm          .10034E-03    67.809        .28521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    30.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.910        19.604        .11607E-03   -1.5018    
   7  Prefactor     .10001E-03    26.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    65.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.211        8.9571        .12540E-03   -1.5069    
  12  Prefactor     1.9730        1.8993        .10524E-03   -1.5427    
  13  Prefactor     19.536        19.235        .90616E-04   -1.4824    
  14  Prefactor     4.4184        14.801        .95822E-03   -1.5288    
  15  Prefactor     32.411        31.784        .70383E-04   -1.4569    
  16  Prefactor     .10001E-03    130.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .59369        .26341        .26651E-04   -1.5554    
  18  norm          .10000E-03    4.0445        .15985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.7383        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4998        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.291        13.397        .10243E-03   -1.4926    
  22  Normalizat    2.0484        .33594        .31624E-03   -.63344    
  23  Prefactor     .82459        .17277        .24830E-03   -.98828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17044e-09
Minuit parameter uncertainties:
  1  2.60925e-06
  2  3.33028e-06
  3  22.6806
  4  0.00959997
  5  0.00124031
  6  19.6143
  7  0.000983836
  8  9.75135e-05
  9  9.54578e-06
  10  0.00179974
  11  8.95828
  12  1.89934
  13  19.2414
  14  14.8136
  15  31.8007
  16  0.00262116
  17  0.263408
  18  1.10426e-06
  19  7.91918e-06
  20  8.54505e-06
  21  13.4
  22  0.336334
  23  0.172879
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.973e+00  1.899e+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.246e-01  1.729e-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:  2.048e+00  3.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.76e-05

TS (Fixed Index): 3.21
Ra Dec: 187.798 -14.201
Photon Flux Upper Limit: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763413/likelihoodResults_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.txt

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) = 6656.34046
delta logL = 0.00577980377966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6656.33966328
delta logL = 0.00657652339214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0490       1.0000         .10000E-03   10000.    
     2 'Index1    '    .75892       1.0000          .0000       10.000    
     3 'Normalizat'    2.0463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82446       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=   6656.340     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      226 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0489        1.9642        .10573E-03    .15123E-02
   2  Index1        .75879        1.0784        .19721E-01    .70025E-04
   3  Normalizat    2.0463        .31856        .31634E-03   -.10467E-03
   4  Prefactor     .82446        .17095        .24830E-03   -.18360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0489
  Index1     = 0.758795
  Normalizat = 2.04632
  Prefactor  = 0.82446
 **********
 **   18 **HESSE 
 **********

 FCN=   6656.340     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0489        1.9782        .21146E-04   -1.5422    
   2  Index1        .75879        1.0856        .78884E-03   -1.0127    
   3  Normalizat    2.0463        .31876        .63268E-04   -.63395    
   4  Prefactor     .82446        .17110        .99321E-05   -.98833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64822e-09
Minuit parameter uncertainties:
  1  1.97829
  2  1.1186
  3  0.319095
  4  0.17121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763413': 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) = 6656.33966327
delta logL = 0.00657653599683

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  2.049e+00  1.978e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.588e-01  1.119e+00  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.245e-01  1.712e-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:  2.046e+00  3.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.76 +/- 1.12
Photon Flux (Free Index): 2.47e-08 +/- 3.84e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/763413/cmap_HighResolution_369446401_369705601_4FGL_J1231.1-1412_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-05', comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='1.83e-05', photon_flux_error='2.05e-08', dlogl='6.58e-03', energy_flux='1.83e-05', photon_flux2='2.47e-08', job_status='DONE', time_completed='2021-09-05 22:06:49.621595', photon_index_error2='1.12', photon_index2='0.76', ts='3.21', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='7.74e-08', energy_flux_error2='1.71e-05', EG='2.05', time_epoch_completed='1630904809.62', return_code='0', job_id='763413', GAL2='0.82', EG2='2.05', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.84e-08', ts2='3.22', photon_index='0.63' WHERE bin_id='502' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 763413: <4FGL_J1231.1-1412_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin502 187.798 -14.2014 369446401 369705601 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 :                                   720.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            978 sec.

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

