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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin583
RA = 187.798, Dec = -14.2014
tmin = 390441601, tmax = 390700801
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='764876', job_status='RUN', time_executed='2021-09-05 21:59:19.434901', time_epoch_executed='1630904359.43' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764876

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764876/ft1_4FGL_J1231.1-1412_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764876/ft1_4FGL_J1231.1-1412_daily_bin583.fits outfile=/scratch/kocevski/764876/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin583.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=390441601.0 tmax=390700801.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/764876/ltcube_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.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/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits
.....................!
real 15.78
user 14.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/764876/ltcube_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.fits outfile=/scratch/kocevski/764876/expmap_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.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/764876/ltcube_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.fits
.....................!
real 193.37
user 188.09
sys 4.79

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/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits scfile=/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits outfile=/scratch/kocevski/764876/cmap_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits scfile=/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits outfile=/scratch/kocevski/764876/cmap_HighResolution_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764876/Model_4FGL_J1231.1-1412_daily_bin583.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/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits..........................!
real 16.81
user 14.46
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits', '/scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits', expMap='/scratch/kocevski/764876/expmap_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.fits', expCube='/scratch/kocevski/764876/ltcube_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/764876/Model_4FGL_J1231.1-1412_daily_bin583.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/764876/ft1_filtered_4FGL_J1231.1-1412_daily_bin583.fits
Spacecraft file(s): /scratch/kocevski/764876/ft2_4FGL_J1231.1-1412_daily_bin583.fits
Exposure map: /scratch/kocevski/764876/expmap_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.fits
Exposure cube: /scratch/kocevski/764876/ltcube_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/764876/Model_4FGL_J1231.1-1412_daily_bin583.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 341.421656171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 338.664149022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36362E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7058       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23751E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    130.92       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1180       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86488E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    176.37       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8029       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5892       1.0000         .10000E-03   10000.    
    18 'norm      '    .34139       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9082       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.425       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .37345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   338.6572     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      336 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.125        .45588E-04** at limit **
   2  Prefactor     .10000E-03    225.18        .16234E-03** at limit **
   3  Prefactor     6.7058        1.0028         .0000         .0000    
   4  norm          3.1582        1.0131         .0000         .0000    
   5  Prefactor     .10000E-03    144.26        .62330E-04** at limit **
   6  Prefactor     131.64        103.32       -.11077E-03   -.20412E-02
   7  Prefactor     .10000E-03    116.04       -.12066E-03** at limit **
   8  Prefactor     5.2809        1.0045         .0000         .0000    
   9  Prefactor     1.7993        1.0450         .0000         .0000    
  10  Prefactor     3.1180        1.0135         .0000         .0000    
  11  Prefactor     .10000E-03    32.690        .57558E-04** at limit **
  12  Prefactor     .10000E-03    14.712        .27056E-04** at limit **
  13  Prefactor     2.4799        39.734       -.14031E-03    .16725E-02
  14  Prefactor     .10000E-03    31.417        .20226E-04** at limit **
  15  Prefactor     175.31        27.812       -.15000E-06   -.46530E-02
  16  Prefactor     8.8029        1.0016         .0000         .0000    
  17  norm          1.5890        .71215       -.24282E-05    .63502E-04
  18  norm          .10000E-03    93.119        .10392E-03** at limit **
  19  norm          .11080E-03    2093.0       -.51425E-03** at limit **
  20  Prefactor     1.1691        1.1478         .0000         .0000    
  21  Prefactor     45.064        65.891        .72569E-04   -.46862E-03
  22  Normalizat    .10000E-01    .31518        .17216E-03** at limit **
  23  Prefactor     .37421        .29662        .27798E-03    .26902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.70577
  norm       = 3.15819
  Prefactor  = 0.0001
  Prefactor  = 131.636
  Prefactor  = 0.0001
  Prefactor  = 5.28086
  Prefactor  = 1.79931
  Prefactor  = 3.11798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47991
  Prefactor  = 0.0001
  Prefactor  = 175.313
  Prefactor  = 8.80289
  norm       = 1.58904
  norm       = 0.0001
  norm       = 0.000110796
  Prefactor  = 1.1691
  Prefactor  = 45.0637
  Normalizat = 0.01
  Prefactor  = 0.37421
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   338.6572     FROM HESSE     STATUS=FAILED        19 CALLS      355 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    225.29        .92033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     515.76        509.01         .0000       -1.5190    
   4  norm          3.1582        1.0131         .0000       -1.5353    
   5  Prefactor     .10000E-03    .20890        .62330E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     131.64        1.0027       -.11077E-03   -1.3408    
   7  Prefactor     .10000E-03    .41880       -.12066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2809        1.0045         .0000       -1.5248    
   9  Prefactor     1.7993        1.0450         .0000       -1.5440    
  10  Prefactor     3.1180        1.0135         .0000       -1.5355    
  11  Prefactor     .10000E-03    .20571        .57558E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .27183        .27056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4799        .91822       -.14031E-03   -1.5393    
  14  Prefactor     .10000E-03    .27365        .20226E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     175.31        .99705       -.15000E-06   -1.3052    
  16  Prefactor     8.8029        1.0016         .0000       -1.5114    
  17  norm          1.5890        1.0608       -.24282E-05   -1.5456    
  18  norm          .10000E-03    .28117        .10392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11080E-03    .65078E-01   -.51425E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1691        1.1478         .0000       -1.5492    
  21  Prefactor     45.064        .99609        .72569E-04   -1.4364    
  22  Normalizat    .10000E-01    .25724        .17216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .37421        .70165        .27798E-03   -1.1815    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.09386e-11
Minuit parameter uncertainties:
  1  3.13953e-06
  2  0.000184016
  3  1.00281
  4  1.01312
  5  1.93904e-06
  6  1.00269
  7  9.51028e-06
  8  1.00455
  9  1.04504
  10  1.01347
  11  1.43099e-06
  12  7.86668e-07
  13  0.918225
  14  5.23489e-07
  15  0.997051
  16  1.00162
  17  1.06077
  18  2.90612e-06
  19  0.00167637
  20  1.14786
  21  0.996092
  22  1.27326e-06
  23  0.718701
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 338.657185014

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.000e-04  7.867e-07  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:  3.742e-01  7.187e-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.000e-02  1.273e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.798 -14.201
Photon Flux Upper Limit: 9.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/764876/likelihoodResults_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 338.657495814
delta logL = -0.000310800131444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 338.657186418
delta logL = -1.40447144759e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .62375       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37395       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=   338.6572     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1945.2        .69067E-03** at limit **
   2  Index1        .36480        5.1770        .50000        .38327E-08
   3  Normalizat    .10000E-01    .12083        .62074E-02** at limit **
   4  Prefactor     .37421        .15201        .23403E-03   -.83555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.3648
  Normalizat = 0.01
  Prefactor  = 0.374209
 **********
 **   18 **HESSE 
 **********

 FCN=   338.6572     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.846        .13813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .36480        5.7377        .50000       -1.1864    
   3  Normalizat    .10000E-01    .31550        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .37421        .24600        .93610E-05   -1.1815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41234e-11
Minuit parameter uncertainties:
  1  1.05393e-06
  2  544.253
  3  2.97e-06
  4  0.246694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764876': 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) = 338.657184926
delta logL = 8.78814603311e-08

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.000e-04  1.054e-06  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.648e-01  5.443e+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:  3.742e-01  2.467e-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.000e-02  2.970e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.798 -14.201

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/764876/cmap_HighResolution_390441601_390700801_4FGL_J1231.1-1412_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-04', job_status='DONE', photon_flux_upper_limit='9.52e-07', time_completed='2021-09-05 22:05:02.408835', job_id='764876', GAL2='0.37', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630904702.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.37', dlogl='8.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='0.63' WHERE bin_id='583' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 764876: <4FGL_J1231.1-1412_daily_bin583> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin583> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:55:43 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:55:51 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:55:51 2021
Terminated at Sun Sep  5 22:05:03 2021
Results reported at Sun Sep  5 22:05:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin583 187.798 -14.2014 390441601 390700801 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 :                                   335.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            560 sec.

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

