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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin963
RA = 187.798, Dec = -14.2014
tmin = 488937601, tmax = 489196801
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='766680', job_status='RUN', time_executed='2021-09-05 22:04:58.022596', time_epoch_executed='1630904698.02' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766680/ft1_4FGL_J1231.1-1412_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766680/ft2_4FGL_J1231.1-1412_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766680/ft1_4FGL_J1231.1-1412_daily_bin963.fits outfile=/scratch/kocevski/766680/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin963.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=488937601.0 tmax=489196801.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.62
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766680/ft1_filtered_4FGL_J1231.1-1412_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/766680/ft2_4FGL_J1231.1-1412_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/766680/ltcube_488937601_489196801_4FGL_J1231.1-1412_daily_bin963.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/766680/ft2_4FGL_J1231.1-1412_daily_bin963.fits
.....................!
real 17.55
user 17.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766680/ft1_filtered_4FGL_J1231.1-1412_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/766680/ft2_4FGL_J1231.1-1412_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/766680/ltcube_488937601_489196801_4FGL_J1231.1-1412_daily_bin963.fits outfile=/scratch/kocevski/766680/expmap_488937601_489196801_4FGL_J1231.1-1412_daily_bin963.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/766680/ltcube_488937601_489196801_4FGL_J1231.1-1412_daily_bin963.fits
.....................!
real 192.67
user 187.88
sys 4.29

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/766680/ft1_filtered_4FGL_J1231.1-1412_daily_bin963.fits scfile=/scratch/kocevski/766680/ft2_4FGL_J1231.1-1412_daily_bin963.fits outfile=/scratch/kocevski/766680/cmap_488937601_489196801_4FGL_J1231.1-1412_daily_bin963.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.58
user 0.41
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766680/ft1_filtered_4FGL_J1231.1-1412_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/766680/ft2_4FGL_J1231.1-1412_daily_bin963.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766680/Model_4FGL_J1231.1-1412_daily_bin963.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/766680/ft1_filtered_4FGL_J1231.1-1412_daily_bin963.fits.....................!
real 56.46
user 55.06
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1009       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7249       1.0000         .10000E-03   10000.    
     4 'norm      '    16.308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1371       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.978       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.017       1.0000         .10000E-03   10000.    
    17 'norm      '    .99556       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    31.193       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.102       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78290       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2662       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=   6789.351     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2581 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1004        3.1204       -.43996E-06   -.21767E-03
   2  Prefactor     2.7948        20.116        .17731E-04   -.88374E-04
   3  Prefactor     6.7128        17.154       -.72902E-06   -.50636E-04
   4  norm          16.309        7.7465        .40530E-05   -.18699E-04
   5  Prefactor     .10000E-03    17.425       -.41777E-05** at limit **
   6  Prefactor     .10000E-03    17.058        .35690E-05** at limit **
   7  Prefactor     .10000E-03    340.88       -.16207E-04** at limit **
   8  Prefactor     .10000E-03    58.615       -.44074E-05** at limit **
   9  Prefactor     .10000E-03    8.8585        .24860E-07** at limit **
  10  Prefactor     .10000E-03    97.142        .70831E-05** at limit **
  11  Prefactor     .10000E-03    1.9718        .22198E-07** at limit **
  12  Prefactor     5.1243        2.4118        .63530E-07    .47100E-04
  13  Prefactor     9.1372        9.3984        .11249E-05    .30566E-04
  14  Prefactor     18.052        16.155       -.22446E-05   -.28755E-04
  15  Prefactor     30.980        30.967       -.66833E-06    .34217E-05
  16  Prefactor     21.969        94.957       -.73039E-04   -.24880E-05
  17  norm          .99557        .29948        .15268E-07   -.97240E-04
  18  norm          .10000E-03    10.275       -.31512E-06** at limit **
  19  norm          31.205        10.813        .15963E-05   -.87204E-04
  20  Prefactor     .10000E-03    10.597        .98001E-06** at limit **
  21  Prefactor     19.103        13.056       -.21743E-05   -.29329E-05
  22  Normalizat    .78277        .28288       -.14013E-05   -.32358E-04
  23  Prefactor     1.2662        .15657        .78358E-06   -.69079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10045
  Prefactor  = 2.79483
  Prefactor  = 6.71277
  norm       = 16.3086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.12432
  Prefactor  = 9.13717
  Prefactor  = 18.0519
  Prefactor  = 30.98
  Prefactor  = 21.969
  norm       = 0.995568
  norm       = 0.0001
  norm       = 31.2048
  Prefactor  = 0.000100001
  Prefactor  = 19.1026
  Normalizat = 0.782767
  Prefactor  = 1.26623
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.351     FROM HESSE     STATUS=OK           372 CALLS     2953 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1004        3.1142        .14107E-03   -1.5356    
   2  Prefactor     2.7948        19.787        .24301E-03   -1.5374    
   3  Prefactor     6.7128        17.116        .15473E-03   -1.5190    
   4  norm          16.309        7.7433        .99179E-04   -1.4900    
   5  Prefactor     .10000E-03    17.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    352.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    97.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9745        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1243        2.4128        .85005E-04   -1.5255    
  13  Prefactor     9.1372        9.4004        .13259E-03   -1.5103    
  14  Prefactor     18.052        16.226        .94274E-04   -1.4858    
  15  Prefactor     30.980        31.040        .71988E-04   -1.4594    
  16  Prefactor     21.969        95.228        .85363E-04   -1.4770    
  17  norm          .99557        .29928        .23555E-04   -1.5508    
  18  norm          .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          31.205        10.747        .71740E-04   -1.4590    
  20  Prefactor     .10000E-03    10.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.103        13.056        .91641E-04   -1.4834    
  22  Normalizat    .78277        .31404        .43673E-03   -1.0071    
  23  Prefactor     1.2662        .17525        .20130E-03   -.84317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69921e-10
Minuit parameter uncertainties:
  1  3.11435
  2  14.8797
  3  17.1281
  4  7.74376
  5  7.72957e-06
  6  2.24204e-05
  7  0.000200164
  8  0.000370273
  9  1.63767e-05
  10  0.000375015
  11  2.45769e-06
  12  2.41282
  13  9.40192
  14  16.2303
  15  31.0565
  16  91.7255
  17  0.299283
  18  6.01546e-05
  19  10.7477
  20  0.000172604
  21  13.0578
  22  0.314772
  23  0.17533
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.124e+00  2.413e+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.266e+00  1.753e-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:  7.828e-01  3.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.85
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 4.75e-05 +/- 2.24e-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) = 6789.16707534
delta logL = 0.183491785691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.10896772
delta logL = 0.241599412429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0903       1.0000         .10000E-03   10000.    
     2 'Index1    '    .92929E-01   1.0000          .0000       10.000    
     3 'Normalizat'    .78954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2717       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=   6789.109     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0900        2.1777        .49835E-02    .13173E-02
   2  Index1        .92174E-01    .59899        .50000        .65631E-04
   3  Normalizat    .78963        .27022        .98182E-01    .38209E-04
   4  Prefactor     1.2717        .15479        .33121E-01   -.83124E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09002
  Index1     = 0.0921744
  Normalizat = 0.78963
  Prefactor  = 1.27171
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.109     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0900        3.2093        .81312E-04   -1.5303    
   2  Index1        .92174E-01    1.9560        .37135E-01   -1.3785    
   3  Normalizat    .78963        .29866        .43509E-03   -1.0045    
   4  Prefactor     1.2717        .17322        .20105E-03   -.84152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09577e-07
Minuit parameter uncertainties:
  1  3.20945
  2  0.884434
  3  0.299283
  4  0.173297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766680': 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) = 6789.10896692
delta logL = 0.241600211

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.090e+00  3.209e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  9.217e-02  8.844e-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.272e+00  1.733e-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:  7.896e-01  2.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.31
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.09 +/- 0.88
Photon Flux (Free Index): 3.43e-08 +/- 3.10e-08
Energy Flux (Free Index): 5.31e-05 +/- 2.83e-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/766680/cmap_HighResolution_488937601_489196801_4FGL_J1231.1-1412_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='5.31e-05', photon_flux_error='2.61e-08', dlogl='2.42e-01', energy_flux='4.75e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-09-05 22:16:00.320636', photon_index_error2='0.88', photon_index2='0.09', ts='15.85', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='0.78', time_epoch_completed='1630905360.32', return_code='0', job_id='766680', GAL2='1.27', EG2='0.79', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='3.10e-08', ts2='16.31', photon_index='0.63' WHERE bin_id='963' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 766680: <4FGL_J1231.1-1412_daily_bin963> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin963> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:43 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:01:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:01:41 2021
Terminated at Sun Sep  5 22:16:01 2021
Results reported at Sun Sep  5 22:16:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin963 187.798 -14.2014 488937601 489196801 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 :                                   654.60 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            918 sec.

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

