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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1548
RA = 187.798, Dec = -14.2014
tmin = 640569601, tmax = 640828801
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='768695', job_status='RUN', time_executed='2021-09-05 22:08:16.669572', time_epoch_executed='1630904896.67' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768695/ft1_4FGL_J1231.1-1412_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768695/ft1_4FGL_J1231.1-1412_daily_bin1548.fits outfile=/scratch/kocevski/768695/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1548.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=640569601.0 tmax=640828801.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.03
user 2.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768695/ft1_filtered_4FGL_J1231.1-1412_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/768695/ltcube_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.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/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits
.....................!
real 19.11
user 18.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768695/ft1_filtered_4FGL_J1231.1-1412_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/768695/ltcube_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.fits outfile=/scratch/kocevski/768695/expmap_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.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/768695/ltcube_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.fits
.....................!
real 194.99
user 188.38
sys 5.53

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/768695/ft1_filtered_4FGL_J1231.1-1412_daily_bin1548.fits scfile=/scratch/kocevski/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits outfile=/scratch/kocevski/768695/cmap_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768695/ft1_filtered_4FGL_J1231.1-1412_daily_bin1548.fits scfile=/scratch/kocevski/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits outfile=/scratch/kocevski/768695/cmap_HighResolution_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.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/768695/ft1_filtered_4FGL_J1231.1-1412_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/768695/ft2_4FGL_J1231.1-1412_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/768695/Model_4FGL_J1231.1-1412_daily_bin1548.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/768695/ft1_filtered_4FGL_J1231.1-1412_daily_bin1548.fits....................!
real 28.78
user 26.81
sys 1.27

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1893.45973433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    128.16       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17998E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.898       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    346.93       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    225.00       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40191E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9600       1.0000         .10000E-03   10000.    
    18 'norm      '    140.43       1.0000         .10000E-03   10000.    
    19 'norm      '    4.3336       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2619       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67120       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=   1893.166     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2631 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7156        9.2969        .21119E-05    .40999E-04
   2  Prefactor     128.18        55.962       -.22484E-06   -.10445E-03
   3  Prefactor     .10000E-03    98.977        .51711E-06** at limit **
   4  norm          13.906        19.966        .11194E-05   -.80052E-04
   5  Prefactor     .10000E-03    48.106        .48621E-07** at limit **
   6  Prefactor     2.6732        97.013        .68371E-05   -.26897E-05
   7  Prefactor     .10000E-03    52.553        .25106E-06** at limit **
   8  Prefactor     347.58        323.16       -.80036E-05   -.41896E-04
   9  Prefactor     11.243        300.87        .41528E-05   -.37978E-05
  10  Prefactor     .10003E-03    297.47       -.30392E-04** at limit **
  11  Prefactor     .10000E-03    9.0471        .42591E-06** at limit **
  12  Prefactor     9.6910        6.2661       -.59038E-07   -.31314E-04
  13  Prefactor     70.131        69.875       -.23594E-06   -.33820E-05
  14  Prefactor     .10000E-03    11.377        .91597E-07** at limit **
  15  Prefactor     224.72        146.98       -.25392E-05   -.49615E-04
  16  Prefactor     .10000E-03    414.79       -.22813E-06** at limit **
  17  norm          1.9606        .80982        .34788E-06    .90161E-03
  18  norm          140.43        109.41       -.24058E-06   -.43370E-05
  19  norm          4.3407        87.321        .11531E-05    .40986E-05
  20  Prefactor     .10000E-03    30.714       -.21626E-06** at limit **
  21  Prefactor     .10000E-03    70.464        .11145E-06** at limit **
  22  Normalizat    1.2616        .59261       -.17709E-04   -.80563E-05
  23  Prefactor     .67135        .30578        .92660E-05   -.19699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71559
  Prefactor  = 128.182
  Prefactor  = 0.000100001
  norm       = 13.9063
  Prefactor  = 0.0001
  Prefactor  = 2.67317
  Prefactor  = 0.0001
  Prefactor  = 347.576
  Prefactor  = 11.2427
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 9.69103
  Prefactor  = 70.131
  Prefactor  = 0.0001
  Prefactor  = 224.719
  Prefactor  = 0.0001
  norm       = 1.96065
  norm       = 140.429
  norm       = 4.34074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26159
  Prefactor  = 0.671353
 **********
 **   18 **HESSE 
 **********

 FCN=   1893.166     FROM HESSE     STATUS=OK           360 CALLS     2991 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7156        8.8794        .22617E-03   -1.5446    
   2  Prefactor     128.18        55.316        .35562E-04   -1.3439    
   3  Prefactor     .10000E-03    99.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.906        19.932        .10744E-03   -1.4962    
   5  Prefactor     .10000E-03    48.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6732        95.395        .24941E-03   -1.5381    
   7  Prefactor     .10000E-03    52.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     347.58        323.57        .10929E-03   -1.1957    
   9  Prefactor     11.243        312.94        .11737E-03   -1.5037    
  10  Prefactor     .10003E-03    307.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0706        .12784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6910        6.2664        .85014E-04   -1.5085    
  13  Prefactor     70.131        69.890        .47939E-04   -1.4031    
  14  Prefactor     .10000E-03    11.380        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     224.72        148.86        .13486E-03   -1.2698    
  16  Prefactor     .10000E-03    414.80        .21261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9606        .81870        .22850E-04   -1.5428    
  18  norm          140.43        109.06        .33994E-04   -1.3332    
  19  norm          4.3407        86.697        .19350E-03   -1.5291    
  20  Prefactor     .10000E-03    30.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    70.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2616        .63565        .36884E-03   -.84720    
  23  Prefactor     .67135        .33247        .26777E-03   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95216e-10
Minuit parameter uncertainties:
  1  7.80762
  2  55.3388
  3  0.000462159
  4  19.9412
  5  7.25032e-05
  6  31.9926
  7  2.35716e-05
  8  325.281
  9  119.327
  10  0.00641655
  11  3.76143e-05
  12  6.26684
  13  69.9717
  14  1.41268e-05
  15  149.111
  16  1.32116e-05
  17  0.818705
  18  109.216
  19  38.8627
  20  2.14417e-05
  21  1.15486e-05
  22  0.639627
  23  0.333457
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  9.691e+00  6.267e+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:  6.714e-01  3.335e-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.262e+00  6.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.64
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.77e-08
Energy Flux (Fixed Index): 8.98e-05 +/- 5.81e-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) = 1893.16212878
delta logL = 0.00367596831029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1893.16206355
delta logL = 0.00374119516277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6764       1.0000         .10000E-03   10000.    
     2 'Index1    '    .70600       1.0000          .0000       10.000    
     3 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67271       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=   1893.162     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      229 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6644        201.00        .32206E-02   -.64409E-05
   2  Index1        .70405        9.2005        .32667        .11603E-04
   3  Normalizat    1.2568        1.0763        .83448E-01    .41504E-05
   4  Prefactor     .67272        .33388        .60476E-01    .69843E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.66443
  Index1     = 0.704049
  Normalizat = 1.25678
  Prefactor  = 0.672722
 **********
 **   18 **HESSE 
 **********

 FCN=   1893.162     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6644        6.2650        .84688E-04   -1.5086    
   2  Index1        .70405        .86550        .12448E-01   -1.0337    
   3  Normalizat    1.2568        .58082        .36946E-03   -.84866    
   4  Prefactor     .67272        .31948        .26750E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30796e-13
Minuit parameter uncertainties:
  1  6.26546
  2  0.882927
  3  0.58386
  4  0.320351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768695': 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) = 1893.16205879
delta logL = 0.00374595910012

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  9.664e+00  6.265e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.040e-01  8.829e-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:  6.727e-01  3.204e-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.257e+00  5.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.57
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.70 +/- 0.88
Photon Flux (Free Index): 1.11e-07 +/- 1.03e-07
Energy Flux (Free Index): 8.75e-05 +/- 6.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/768695/cmap_HighResolution_640569601_640828801_4FGL_J1231.1-1412_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='8.75e-05', photon_flux_error='6.77e-08', dlogl='3.75e-03', energy_flux='8.98e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 22:15:48.434187', photon_index_error2='0.88', photon_index2='0.70', ts='8.64', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='6.26e-05', EG='1.26', time_epoch_completed='1630905348.43', return_code='0', job_id='768695', GAL2='0.67', EG2='1.26', return_code2='0', energy_flux_error='5.81e-05', photon_flux_error2='1.03e-07', ts2='8.57', photon_index='0.63' WHERE bin_id='1548' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:15:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 768695: <4FGL_J1231.1-1412_daily_bin1548> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1548> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 22:06:10 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:07:02 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:07:02 2021
Terminated at Sun Sep  5 22:15:48 2021
Results reported at Sun Sep  5 22:15:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1548 187.798 -14.2014 640569601 640828801 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 :                                   424.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   526 sec.
    Turnaround time :                            578 sec.

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

