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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1327
RA = 187.798, Dec = -14.2014
tmin = 583286401, tmax = 583545601
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='768366', job_status='RUN', time_executed='2021-09-05 22:07:30.572476', time_epoch_executed='1630904850.57' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768366/ft1_4FGL_J1231.1-1412_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768366/ft1_4FGL_J1231.1-1412_daily_bin1327.fits outfile=/scratch/kocevski/768366/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1327.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=583286401.0 tmax=583545601.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.60
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768366/ft1_filtered_4FGL_J1231.1-1412_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/768366/ltcube_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.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/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits
.....................!
real 16.22
user 15.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768366/ft1_filtered_4FGL_J1231.1-1412_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/768366/ltcube_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.fits outfile=/scratch/kocevski/768366/expmap_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.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/768366/ltcube_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.fits
.....................!
real 192.72
user 187.95
sys 4.10

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/768366/ft1_filtered_4FGL_J1231.1-1412_daily_bin1327.fits scfile=/scratch/kocevski/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits outfile=/scratch/kocevski/768366/cmap_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.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.71
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768366/ft1_filtered_4FGL_J1231.1-1412_daily_bin1327.fits scfile=/scratch/kocevski/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits outfile=/scratch/kocevski/768366/cmap_HighResolution_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.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.64
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/768366/ft1_filtered_4FGL_J1231.1-1412_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/768366/ft2_4FGL_J1231.1-1412_daily_bin1327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/768366/Model_4FGL_J1231.1-1412_daily_bin1327.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/768366/ft1_filtered_4FGL_J1231.1-1412_daily_bin1327.fits.....................!
real 64.57
user 62.75
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41867E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.018       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32651E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4435       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12757E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8809       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.541       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1062       1.0000         .10000E-03   10000.    
    18 'norm      '    7.9702       1.0000         .10000E-03   10000.    
    19 'norm      '    .18982E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .88731       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3710       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0084       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=   7248.178     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2619 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9916       -.34255E-07** at limit **
   2  Prefactor     .10000E-03    9.7902        .28186E-06** at limit **
   3  Prefactor     22.009        21.750       -.44830E-05   -.11348E-04
   4  norm          3.5123        6.6990        .50927E-05   -.82771E-04
   5  Prefactor     .10001E-03    130.06       -.89428E-05** at limit **
   6  Prefactor     .10000E-03    9.0589       -.79364E-06** at limit **
   7  Prefactor     7.3782        49.660        .12193E-04    .90249E-05
   8  Prefactor     14.653        46.603        .31656E-05   -.10350E-04
   9  Prefactor     .10001E-03    53.138       -.46987E-05** at limit **
  10  Prefactor     21.428        37.257        .31676E-05   -.96040E-05
  11  Prefactor     .10000E-03    7.0938        .24450E-06** at limit **
  12  Prefactor     8.2496        2.7774       -.42391E-08   -.10319E-03
  13  Prefactor     .10000E-03    15.898        .84870E-06** at limit **
  14  Prefactor     8.8789        13.122        .44056E-06   -.22819E-04
  15  Prefactor     13.541        43.931        .41901E-06   -.40140E-06
  16  Prefactor     .10000E-03    124.25       -.31982E-05** at limit **
  17  norm          1.1061        .33528        .13939E-07   -.15683E-03
  18  norm          7.9704        6.8427        .34845E-07   -.87667E-04
  19  norm          .10001E-03    5.2482        .15876E-05** at limit **
  20  Prefactor     .88850        7.8225        .27050E-06   -.45757E-03
  21  Prefactor     .10000E-03    7.0141       -.71998E-07** at limit **
  22  Normalizat    1.3712        .25351       -.16474E-05   -.92738E-04
  23  Prefactor     1.0083        .13892        .93987E-07   -.11563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.009
  norm       = 3.51235
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 7.37822
  Prefactor  = 14.6529
  Prefactor  = 0.000100011
  Prefactor  = 21.4285
  Prefactor  = 0.0001
  Prefactor  = 8.24959
  Prefactor  = 0.0001
  Prefactor  = 8.87892
  Prefactor  = 13.5407
  Prefactor  = 0.0001
  norm       = 1.10615
  norm       = 7.97043
  norm       = 0.000100013
  Prefactor  = 0.888504
  Prefactor  = 0.0001
  Normalizat = 1.37119
  Prefactor  = 1.0083
 **********
 **   18 **HESSE 
 **********

 FCN=   7248.178     FROM HESSE     STATUS=OK           376 CALLS     2995 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.665        .23103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.009        21.860        .85361E-04   -1.4769    
   4  norm          3.5123        6.7616        .10789E-02   -1.5333    
   5  Prefactor     .10001E-03    133.59        .21354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3782        49.664        .14700E-03   -1.5165    
   8  Prefactor     14.653        46.523        .10452E-03   -1.4942    
   9  Prefactor     .10001E-03    54.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.428        37.152        .86438E-04   -1.4782    
  11  Prefactor     .10000E-03    7.2217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2496        2.7738        .79545E-04   -1.5133    
  13  Prefactor     .10000E-03    16.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8789        13.186        .13450E-03   -1.5112    
  15  Prefactor     13.541        44.167        .10885E-03   -1.4972    
  16  Prefactor     .10000E-03    124.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1061        .33695        .25023E-04   -1.5498    
  18  norm          7.9704        6.8411        .14202E-03   -1.5143    
  19  norm          .10001E-03    15.706        .32266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .88850        6.1148        .39864E-03   -1.5519    
  21  Prefactor     .10000E-03    7.0318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3712        .30422        .33810E-03   -.81466    
  23  Prefactor     1.0083        .16723        .21386E-03   -.92453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55417e-09
Minuit parameter uncertainties:
  1  6.71948e-06
  2  5.10205e-06
  3  21.868
  4  6.76304
  5  0.0027927
  6  6.81866e-05
  7  38.3306
  8  46.6387
  9  0.00154306
  10  37.1917
  11  1.04398e-05
  12  2.77383
  13  1.24348e-05
  14  13.1899
  15  44.2737
  16  0.00021373
  17  0.336955
  18  6.84172
  19  0.000899437
  20  4.66221
  21  1.03987e-05
  22  0.304621
  23  0.16732
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.250e+00  2.774e+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.008e+00  1.673e-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.371e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.26
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 8.91e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 7.65e-05 +/- 2.57e-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) = 7248.15045745
delta logL = 0.0277226406015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7248.14844831
delta logL = 0.029731780015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0802       1.0000         .10000E-03   10000.    
     2 'Index1    '    .51492       1.0000          .0000       10.000    
     3 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0079       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=   7248.148     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0808        12.040        .35262E-02   -.32957E-04
   2  Index1        .51498        1.5293        .37568        .38167E-04
   3  Normalizat    1.3781        .35724        .76244E-01    .11521E-04
   4  Prefactor     1.0078        .14995        .43658E-01    .44211E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.0808
  Index1     = 0.514984
  Normalizat = 1.37811
  Prefactor  = 1.00783
 **********
 **   18 **HESSE 
 **********

 FCN=   7248.148     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0808        2.8729        .79891E-04   -1.5139    
   2  Index1        .51498        .46335        .13607E-01   -1.1129    
   3  Normalizat    1.3781        .29272        .33743E-03   -.81264    
   4  Prefactor     1.0078        .16263        .21395E-03   -.92469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78853e-12
Minuit parameter uncertainties:
  1  2.87296
  2  0.466814
  3  0.293073
  4  0.162707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768366': 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) = 7248.14844826
delta logL = 0.0297318320936

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.081e+00  2.873e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  5.150e-01  4.668e-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.008e+00  1.627e-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.378e+00  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.29
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.51 +/- 0.47
Photon Flux (Free Index): 8.06e-08 +/- 4.27e-08
Energy Flux (Free Index): 7.85e-05 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/768366/cmap_HighResolution_583286401_583545601_4FGL_J1231.1-1412_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.91e-08', energy_flux2='7.85e-05', photon_flux_error='3.00e-08', dlogl='2.97e-02', energy_flux='7.65e-05', photon_flux2='8.06e-08', job_status='DONE', time_completed='2021-09-05 22:20:31.168665', photon_index_error2='0.47', photon_index2='0.51', ts='34.26', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.37', time_epoch_completed='1630905631.17', return_code='0', job_id='768366', GAL2='1.01', EG2='1.38', return_code2='0', energy_flux_error='2.57e-05', photon_flux_error2='4.27e-08', ts2='34.29', photon_index='0.63' WHERE bin_id='1327' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:20:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 768366: <4FGL_J1231.1-1412_daily_bin1327> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1327> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 22:05:39 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:06:20 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:06:20 2021
Terminated at Sun Sep  5 22:20:31 2021
Results reported at Sun Sep  5 22:20:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1327 187.798 -14.2014 583286401 583545601 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 :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            892 sec.

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

