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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin233
RA = 187.798, Dec = -14.2014
tmin = 299721601, tmax = 299980801
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='761915', job_status='RUN', time_executed='2021-09-05 21:48:11.568167', time_epoch_executed='1630903691.57' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761915/ft1_4FGL_J1231.1-1412_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761915/ft1_4FGL_J1231.1-1412_daily_bin233.fits outfile=/scratch/kocevski/761915/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin233.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=299721601.0 tmax=299980801.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.46
user 3.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761915/ft1_filtered_4FGL_J1231.1-1412_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/761915/ltcube_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.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/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits
.....................!
real 15.73
user 15.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761915/ft1_filtered_4FGL_J1231.1-1412_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/761915/ltcube_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.fits outfile=/scratch/kocevski/761915/expmap_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.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/761915/ltcube_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.fits
.....................!
real 192.10
user 186.60
sys 5.09

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/761915/ft1_filtered_4FGL_J1231.1-1412_daily_bin233.fits scfile=/scratch/kocevski/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits outfile=/scratch/kocevski/761915/cmap_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761915/ft1_filtered_4FGL_J1231.1-1412_daily_bin233.fits scfile=/scratch/kocevski/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits outfile=/scratch/kocevski/761915/cmap_HighResolution_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761915/ft1_filtered_4FGL_J1231.1-1412_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/761915/ft2_4FGL_J1231.1-1412_daily_bin233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761915/Model_4FGL_J1231.1-1412_daily_bin233.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/761915/ft1_filtered_4FGL_J1231.1-1412_daily_bin233.fits.....................!
real 57.21
user 55.82
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.038       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33717E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.996       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.700       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.838       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29611E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .34966       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9771       1.0000         .10000E-03   10000.    
    19 'norm      '    .50484E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7540       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5870       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2613       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1062       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=   6868.314     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2616 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6894        2.2688        .44107E-07    .21477E-04
   2  Prefactor     25.742        18.059       -.13357E-06   -.33342E-06
   3  Prefactor     25.038        16.451        .23319E-06    .40162E-05
   4  norm          .10000E-03    2.8651        .99500E-07** at limit **
   5  Prefactor     .10000E-03    109.47        .78867E-06** at limit **
   6  Prefactor     17.006        17.040       -.61248E-06   -.11137E-04
   7  Prefactor     .10000E-03    46.048        .30471E-06** at limit **
   8  Prefactor     32.689        35.730       -.45431E-05   -.31510E-04
   9  Prefactor     .10000E-03    9.7646        .18123E-06** at limit **
  10  Prefactor     .10000E-03    29.291        .63616E-06** at limit **
  11  Prefactor     .10000E-03    5.2992        .15735E-06** at limit **
  12  Prefactor     4.5620        2.3848        .48415E-07    .97952E-04
  13  Prefactor     21.833        17.088        .25988E-06   -.44460E-04
  14  Prefactor     .10000E-03    4.1315       -.39278E-07** at limit **
  15  Prefactor     55.803        47.774       -.11893E-05   -.62772E-05
  16  Prefactor     .10009E-03    1773.1        .12075E-04** at limit **
  17  norm          .34966        .18052        .13248E-07    .11651E-03
  18  norm          4.9718        10.325        .83778E-06   -.27548E-04
  19  norm          .10032E-03    7.1783        .20990E-05** at limit **
  20  Prefactor     5.7350        6.2623        .28023E-06   -.28875E-03
  21  Prefactor     2.5873        8.0591        .51403E-05    .25695E-03
  22  Normalizat    1.2613        .25843        .11349E-06   -.78246E-04
  23  Prefactor     1.1062        .14647       -.35903E-07   -.10520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68937
  Prefactor  = 25.7418
  Prefactor  = 25.038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.006
  Prefactor  = 0.0001
  Prefactor  = 32.689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.56197
  Prefactor  = 21.8333
  Prefactor  = 0.0001
  Prefactor  = 55.8031
  Prefactor  = 0.000100094
  norm       = 0.349658
  norm       = 4.97185
  norm       = 0.000100317
  Prefactor  = 5.73502
  Prefactor  = 2.58728
  Normalizat = 1.26131
  Prefactor  = 1.10618
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.314     FROM HESSE     STATUS=OK           378 CALLS     2994 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6894        2.2495        .14046E-03   -1.5448    
   2  Prefactor     25.742        18.053        .78960E-04   -1.4693    
   3  Prefactor     25.038        16.421        .40028E-03   -1.4707    
   4  norm          .10000E-03    2.8978        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    113.03        .42680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.006        17.071        .97150E-04   -1.4883    
   7  Prefactor     .10000E-03    46.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.689        35.789        .35036E-03   -1.4564    
   9  Prefactor     .10000E-03    9.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.683        .34975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5620        2.2832        .85853E-04   -1.5281    
  13  Prefactor     21.833        17.087        .85713E-04   -1.4773    
  14  Prefactor     .10000E-03    4.1512        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.803        47.738        .53696E-04   -1.4213    
  16  Prefactor     .10009E-03    1799.6        .36680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34966        .18003        .24012E-04   -1.5590    
  18  norm          4.9718        10.309        .18026E-03   -1.5262    
  19  norm          .10032E-03    44.548        .36482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7350        5.9467        .16744E-03   -1.5229    
  21  Prefactor     2.5873        8.1289        .12685E-02   -1.5386    
  22  Normalizat    1.2613        .30076        .35208E-03   -.84729    
  23  Prefactor     1.1062        .17098        .21188E-03   -.89269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81937e-09
Minuit parameter uncertainties:
  1  2.24964
  2  18.0571
  3  16.4243
  4  7.05618e-06
  5  9.5586e-05
  6  17.0759
  7  7.0803e-05
  8  35.8128
  9  2.65093e-05
  10  6.9236e-05
  11  0.000314082
  12  2.2832
  13  17.0907
  14  3.60558e-06
  15  47.7704
  16  0.0268886
  17  0.180031
  18  10.3126
  19  0.00752662
  20  5.94733
  21  8.1324
  22  0.301181
  23  0.171069
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.562e+00  2.283e+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:  1.106e+00  1.711e-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.261e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.60
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 2.12e-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) = 6868.23221911
delta logL = 0.0815733391873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6868.23145412
delta logL = 0.0823383311126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5211       1.0000         .10000E-03   10000.    
     2 'Index1    '    .86096       1.0000          .0000       10.000    
     3 'Normalizat'    1.2524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1074       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=   6868.231     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5198        53.391        .47335E-02    .57585E-04
   2  Index1        .86107        7.6932        .23778        .52392E-04
   3  Normalizat    1.2515        .37822        .79797E-01   -.67403E-04
   4  Prefactor     1.1078        .11579        .37313E-01   -.32751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.51981
  Index1     = 0.861068
  Normalizat = 1.25154
  Prefactor  = 1.10779
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.231     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5198        2.2584        .83266E-04   -1.5283    
   2  Index1        .86107        .56921        .13517E-01   -.97515    
   3  Normalizat    1.2515        .29468        .35323E-03   -.85025    
   4  Prefactor     1.1078        .16822        .21172E-03   -.89218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10968e-09
Minuit parameter uncertainties:
  1  2.25847
  2  0.573192
  3  0.295069
  4  0.168303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761915': 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) = 6868.23144991
delta logL = 0.082342536205

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.520e+00  2.258e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  8.611e-01  5.732e-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:  1.108e+00  1.683e-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.252e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.72
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.86 +/- 0.57
Photon Flux (Free Index): 5.99e-08 +/- 3.99e-08
Energy Flux (Free Index): 3.97e-05 +/- 2.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/761915/cmap_HighResolution_299721601_299980801_4FGL_J1231.1-1412_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='3.97e-05', photon_flux_error='2.47e-08', dlogl='8.23e-02', energy_flux='4.23e-05', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-09-05 21:59:17.327719', photon_index_error2='0.57', photon_index2='0.86', ts='10.60', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.26', time_epoch_completed='1630904357.33', return_code='0', job_id='761915', GAL2='1.11', EG2='1.25', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='3.99e-08', ts2='10.72', photon_index='0.63' WHERE bin_id='233' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 761915: <4FGL_J1231.1-1412_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin233 187.798 -14.2014 299721601 299980801 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 :                                   662.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            813 sec.

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

