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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin184
RA = 187.798, Dec = -14.2014
tmin = 287020801, tmax = 287280001
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='761811', job_status='RUN', time_executed='2021-09-05 21:48:53.545050', time_epoch_executed='1630903733.55' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761811/ft1_4FGL_J1231.1-1412_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761811/ft2_4FGL_J1231.1-1412_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761811/ft1_4FGL_J1231.1-1412_daily_bin184.fits outfile=/scratch/kocevski/761811/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin184.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=287020801.0 tmax=287280001.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.68
user 4.42
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761811/ft1_filtered_4FGL_J1231.1-1412_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/761811/ft2_4FGL_J1231.1-1412_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/761811/ltcube_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.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/761811/ft2_4FGL_J1231.1-1412_daily_bin184.fits
.....................!
real 16.86
user 16.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761811/ft1_filtered_4FGL_J1231.1-1412_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/761811/ft2_4FGL_J1231.1-1412_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/761811/ltcube_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.fits outfile=/scratch/kocevski/761811/expmap_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.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/761811/ltcube_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.fits
.....................!
real 194.63
user 188.09
sys 4.25

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/761811/ft1_filtered_4FGL_J1231.1-1412_daily_bin184.fits scfile=/scratch/kocevski/761811/ft2_4FGL_J1231.1-1412_daily_bin184.fits outfile=/scratch/kocevski/761811/cmap_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.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/761811/ft1_filtered_4FGL_J1231.1-1412_daily_bin184.fits scfile=/scratch/kocevski/761811/ft2_4FGL_J1231.1-1412_daily_bin184.fits outfile=/scratch/kocevski/761811/cmap_HighResolution_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4628       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.743       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.061       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.306       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.748       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26146E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7517       1.0000         .10000E-03   10000.    
    18 'norm      '    13.020       1.0000         .10000E-03   10000.    
    19 'norm      '    14.452       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.659       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0443       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91338       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=   6406.001     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2522 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4625        4.8127        .20827E-05   -.64246E-04
   2  Prefactor     1.4859        51.998        .20195E-06   -.28840E-05
   3  Prefactor     16.741        12.837        .15327E-06   -.40798E-06
   4  norm          .10000E-03    2.0008       -.40362E-08** at limit **
   5  Prefactor     28.504        46.660       -.34809E-05   -.79395E-05
   6  Prefactor     2.7974        10.379        .40138E-05   -.66498E-05
   7  Prefactor     .10000E-03    14.838        .10996E-05** at limit **
   8  Prefactor     29.781        40.050       -.78400E-06   -.37828E-06
   9  Prefactor     .10000E-03    6.7111        .39440E-06** at limit **
  10  Prefactor     .10000E-03    14.035       -.10789E-05** at limit **
  11  Prefactor     13.818        8.7827        .91764E-07   -.26652E-05
  12  Prefactor     10.061        3.6771        .12063E-06   -.45366E-05
  13  Prefactor     22.306        17.900        .12091E-06   -.34625E-04
  14  Prefactor     28.270        18.022       -.11036E-06   -.88784E-05
  15  Prefactor     98.749        67.268        .50600E-07    .86088E-06
  16  Prefactor     .10000E-03    233.64        .21147E-04** at limit **
  17  norm          1.7516        .41306        .12039E-07   -.21294E-04
  18  norm          13.021        11.052        .67944E-07   -.50270E-04
  19  norm          14.453        6.9058       -.44203E-06   -.60047E-03
  20  Prefactor     .10000E-03    6.2372       -.36989E-06** at limit **
  21  Prefactor     12.661        11.629       -.53208E-07   -.19444E-05
  22  Normalizat    1.0444        .27032       -.99139E-06   -.72070E-04
  23  Prefactor     .91335        .14137       -.53895E-07   -.14851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46252
  Prefactor  = 1.48594
  Prefactor  = 16.7405
  norm       = 0.0001
  Prefactor  = 28.5042
  Prefactor  = 2.79736
  Prefactor  = 0.0001
  Prefactor  = 29.7813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8181
  Prefactor  = 10.0615
  Prefactor  = 22.3065
  Prefactor  = 28.2699
  Prefactor  = 98.7486
  Prefactor  = 0.000100002
  norm       = 1.75164
  norm       = 13.0212
  norm       = 14.4525
  Prefactor  = 0.0001
  Prefactor  = 12.661
  Normalizat = 1.04441
  Prefactor  = 0.913351
 **********
 **   18 **HESSE 
 **********

 FCN=   6406.001     FROM HESSE     STATUS=OK           376 CALLS     2898 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4625        4.7995        .94871E-03   -1.5336    
   2  Prefactor     1.4859        52.277        .35155E-03   -1.5464    
   3  Prefactor     16.741        12.826        .97883E-04   -1.4889    
   4  norm          .10000E-03    2.0142        .11044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.504        46.671        .75049E-04   -1.4640    
   6  Prefactor     2.7974        10.336        .12164E-02   -1.5373    
   7  Prefactor     .10000E-03    14.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.781        40.046        .73423E-04   -1.4616    
   9  Prefactor     .10000E-03    6.7140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.818        8.7950        .10775E-03   -1.4964    
  12  Prefactor     10.061        3.6841        .85629E-04   -1.5073    
  13  Prefactor     22.306        17.907        .84809E-04   -1.4763    
  14  Prefactor     28.270        18.077        .75353E-04   -1.4644    
  15  Prefactor     98.749        68.048        .40454E-04   -1.3717    
  16  Prefactor     .10000E-03    234.44        .21447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7516        .41860        .22460E-04   -1.5443    
  18  norm          13.021        11.052        .11101E-03   -1.4986    
  19  norm          14.453        6.9247        .10536E-03   -1.4947    
  20  Prefactor     .10000E-03    6.3948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.661        11.629        .11258E-03   -1.4996    
  22  Normalizat    1.0444        .31519        .37269E-03   -.91557    
  23  Prefactor     .91335        .16559        .21569E-03   -.95676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24064e-10
Minuit parameter uncertainties:
  1  4.79999
  2  17.6434
  3  12.8278
  4  1.46614e-08
  5  46.7306
  6  10.3422
  7  9.45074e-06
  8  40.0823
  9  2.33642e-06
  10  3.43419e-06
  11  8.79581
  12  3.68415
  13  17.9117
  14  18.0806
  15  68.1023
  16  0.00136659
  17  0.418597
  18  11.0539
  19  6.92507
  20  1.49903e-05
  21  11.6315
  22  0.315759
  23  0.165677
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.006e+01  3.684e+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.134e-01  1.657e-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.044e+00  3.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.20
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 3.98e-08
Energy Flux (Fixed Index): 9.33e-05 +/- 3.42e-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) = 6403.09843573
delta logL = 2.90239329299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.07559998
delta logL = 2.92522904207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2278       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.5213       1.0000          .0000       10.000    
     3 'Normalizat'    .91783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94221       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=   6403.076     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      271 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2278        3.2974        .62786E-04    .13236E-02
   2  Index1        1.5215        .35549        .47705E-02    .13115E-03
   3  Normalizat    .91774        .30320        .39296E-03   -.29596E-04
   4  Prefactor     .94229        .16357        .21179E-03   -.10952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.22776
  Index1     = 1.52145
  Normalizat = 0.917737
  Prefactor  = 0.942293
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.076     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2278        3.1985        .25114E-05   -1.5134    
   2  Index1        1.5215        .34451        .19082E-03   -.76941    
   3  Normalizat    .91774        .30285        .15718E-04   -.95840    
   4  Prefactor     .94229        .16353        .42357E-04   -.94679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40667e-10
Minuit parameter uncertainties:
  1  3.19854
  2  0.34504
  3  0.303418
  4  0.163613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761811': 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) = 6403.07559971
delta logL = 2.92522931119

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.228e+00  3.199e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.521e+00  3.450e-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.423e-01  1.636e-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:  9.177e-01  3.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.94
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.52 +/- 0.35
Photon Flux (Free Index): 2.48e-07 +/- 9.31e-08
Energy Flux (Free Index): 8.71e-05 +/- 2.52e-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/761811/cmap_HighResolution_287020801_287280001_4FGL_J1231.1-1412_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='8.71e-05', photon_flux_error='3.98e-08', dlogl='2.93e+00', energy_flux='9.33e-05', photon_flux2='2.48e-07', job_status='DONE', time_completed='2021-09-05 21:59:47.848899', photon_index_error2='0.35', photon_index2='1.52', ts='23.20', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.04', time_epoch_completed='1630904387.85', return_code='0', job_id='761811', GAL2='0.94', EG2='0.92', return_code2='0', energy_flux_error='3.42e-05', photon_flux_error2='9.31e-08', ts2='28.94', photon_index='0.63' WHERE bin_id='184' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:59:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 761811: <4FGL_J1231.1-1412_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin184 187.798 -14.2014 287020801 287280001 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 :                                   642.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            848 sec.

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

