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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin441
RA = 187.798, Dec = -14.2014
tmin = 353635201, tmax = 353894401
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='763326', job_status='RUN', time_executed='2021-09-05 21:54:06.553688', time_epoch_executed='1630904046.55' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763326

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763326/ft1_4FGL_J1231.1-1412_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763326/ft1_4FGL_J1231.1-1412_daily_bin441.fits outfile=/scratch/kocevski/763326/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin441.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=353635201.0 tmax=353894401.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.58
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763326/ft1_filtered_4FGL_J1231.1-1412_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/763326/ltcube_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.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/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits
.....................!
real 14.69
user 14.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763326/ft1_filtered_4FGL_J1231.1-1412_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/763326/ltcube_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.fits outfile=/scratch/kocevski/763326/expmap_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.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/763326/ltcube_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.fits
.....................!
real 191.10
user 186.49
sys 4.19

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/763326/ft1_filtered_4FGL_J1231.1-1412_daily_bin441.fits scfile=/scratch/kocevski/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits outfile=/scratch/kocevski/763326/cmap_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763326/ft1_filtered_4FGL_J1231.1-1412_daily_bin441.fits scfile=/scratch/kocevski/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits outfile=/scratch/kocevski/763326/cmap_HighResolution_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.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/763326/ft1_filtered_4FGL_J1231.1-1412_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/763326/ft2_4FGL_J1231.1-1412_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763326/Model_4FGL_J1231.1-1412_daily_bin441.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/763326/ft1_filtered_4FGL_J1231.1-1412_daily_bin441.fits.....................!
real 67.66
user 66.04
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2019       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16046E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.121       1.0000         .10000E-03   10000.    
    17 'norm      '    .65137       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8286       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9379       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31814E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99201       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=   8406.789     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2648 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4658       -.14403E-06** at limit **
   2  Prefactor     .10000E-03    5.4434        .88338E-07** at limit **
   3  Prefactor     .10000E-03    5.4828        .16300E-06** at limit **
   4  norm          2.2765        2.8017       -.19534E-06   -.37339E-03
   5  Prefactor     .10000E-03    9.4017       -.24741E-06** at limit **
   6  Prefactor     5.2011        13.621        .10208E-06   -.71931E-04
   7  Prefactor     .10000E-03    45.029        .10717E-05** at limit **
   8  Prefactor     .10000E-03    29.801        .26509E-05** at limit **
   9  Prefactor     .10000E-03    6.4055       -.27388E-07** at limit **
  10  Prefactor     51.825        37.567       -.69894E-05    .92535E-05
  11  Prefactor     .10000E-03    1.0918        .43903E-07** at limit **
  12  Prefactor     5.1170        1.9048        .12399E-07    .17477E-03
  13  Prefactor     .10014E-03    4.2444       -.10750E-05** at limit **
  14  Prefactor     3.0942        9.2695       -.16267E-05   -.24511E-03
  15  Prefactor     .10000E-03    12.684       -.23357E-06** at limit **
  16  Prefactor     23.126        51.416        .41161E-05    .55896E-04
  17  norm          .65137        .22192       -.11931E-07   -.72480E-04
  18  norm          8.8261        8.3541        .47012E-06   -.42930E-04
  19  norm          4.9359        4.1047       -.24111E-06    .22684E-03
  20  Prefactor     .13162        2.7715       -.10658E-05   -.29394E-03
  21  Prefactor     .10006E-03    5.3726       -.14501E-06** at limit **
  22  Normalizat    1.1618        .20049        .78460E-06    .20265E-03
  23  Prefactor     .99208        .11271        .89008E-06    .29041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27648
  Prefactor  = 0.0001
  Prefactor  = 5.20106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.8254
  Prefactor  = 0.0001
  Prefactor  = 5.11699
  Prefactor  = 0.000100138
  Prefactor  = 3.09422
  Prefactor  = 0.0001
  Prefactor  = 23.1263
  norm       = 0.651375
  norm       = 8.82609
  norm       = 4.93588
  Prefactor  = 0.131624
  Prefactor  = 0.000100064
  Normalizat = 1.16176
  Prefactor  = 0.992084
 **********
 **   18 **HESSE 
 **********

 FCN=   8406.789     FROM HESSE     STATUS=OK           382 CALLS     3030 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5794        .21372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2765        2.8009        .16510E-03   -1.5406    
   5  Prefactor     .10000E-03    9.4038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2011        13.641        .17625E-03   -1.5252    
   7  Prefactor     .10000E-03    45.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.825        36.953        .55696E-04   -1.4267    
  11  Prefactor     .10000E-03    1.0944        .93549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1170        1.9056        .74983E-04   -1.5256    
  13  Prefactor     .10014E-03    37.312        .36248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0942        9.4737        .23056E-03   -1.5356    
  15  Prefactor     .10000E-03    12.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.126        51.356        .83303E-04   -1.4746    
  17  norm          .65137        .22154        .24268E-04   -1.5547    
  18  norm          8.8261        8.3304        .13490E-03   -1.5114    
  19  norm          4.9359        4.0997        .15117E-03   -1.5264    
  20  Prefactor     .13162        15.611        .28757E-02   -1.5635    
  21  Prefactor     .10006E-03    7.3009        .71563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1618        .23741        .31619E-03   -.87793    
  23  Prefactor     .99208        .13411        .19593E-03   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00598e-09
Minuit parameter uncertainties:
  1  9.39526e-05
  2  6.12178e-06
  3  9.24583e-06
  4  2.80106
  5  3.29263e-06
  6  13.6489
  7  7.15255e-05
  8  7.32357e-05
  9  2.85132e-05
  10  36.969
  11  6.56757e-07
  12  1.90563
  13  0.00454915
  14  9.47827
  15  4.34459e-06
  16  51.4546
  17  0.221536
  18  8.33149
  19  4.09995
  20  2.86656
  21  0.00136605
  22  0.237632
  23  0.134153
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.117e+00  1.906e+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.921e-01  1.342e-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.162e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.76
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 4.74e-05 +/- 1.77e-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) = 8405.93076992
delta logL = 0.858059136581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8405.87341024
delta logL = 0.915418816734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4589       1.0000         .10000E-03   10000.    
     2 'Index1    '    .53577E-02   1.0000          .0000       10.000    
     3 'Normalizat'    1.1731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99275       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=   8405.873     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      223 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4582        1.7494        .47673E-02   -.55263E-03
   2  Index1        .55921E-02    .33583        .50000        .40423E-04
   3  Normalizat    1.1730        .19189        .71160E-01   -.28480E-04
   4  Prefactor     .99277        .11144        .46176E-01   -.71962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45817
  Index1     = 0.00559212
  Normalizat = 1.17302
  Prefactor  = 0.99277
 **********
 **   18 **HESSE 
 **********

 FCN=   8405.873     FROM HESSE     STATUS=OK            37 CALLS      260 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4582        1.7485        .72002E-04   -1.5286    
   2  Index1        .55921E-02    .33498        .50000       -1.5235    
   3  Normalizat    1.1730        .22676        .31488E-03   -.87441    
   4  Prefactor     .99277        .13186        .19590E-03   -.92971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16393e-10
Minuit parameter uncertainties:
  1  1.74847
  2  0.0870771
  3  0.226954
  4  0.131902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763326': 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) = 8405.8734098
delta logL = 0.915419254066

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.458e+00  1.748e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  5.592e-03  8.708e-02  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.928e-01  1.319e-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.173e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.59
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.01 +/- 0.09
Photon Flux (Free Index): 3.70e-08 +/- 1.46e-08
Energy Flux (Free Index): 6.27e-05 +/- 2.40e-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/763326/cmap_HighResolution_353635201_353894401_4FGL_J1231.1-1412_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='6.27e-05', photon_flux_error='2.06e-08', dlogl='9.15e-01', energy_flux='4.74e-05', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-05 22:06:37.072762', photon_index_error2='0.09', photon_index2='0.01', ts='36.76', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.16', time_epoch_completed='1630904797.07', return_code='0', job_id='763326', GAL2='0.99', EG2='1.17', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='1.46e-08', ts2='38.59', photon_index='0.63' WHERE bin_id='441' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:06:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 763326: <4FGL_J1231.1-1412_daily_bin441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin441 187.798 -14.2014 353635201 353894401 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 :                                   747.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            970 sec.

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

