/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 161 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1231.1-1412_daily_bin408
RA = 187.798, Dec = -14.2014
tmin = 345081601, tmax = 345340801
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='763277', job_status='RUN', time_executed='2021-09-05 21:53:59.027695', time_epoch_executed='1630904039.03' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763277/ft1_4FGL_J1231.1-1412_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763277/ft1_4FGL_J1231.1-1412_daily_bin408.fits outfile=/scratch/kocevski/763277/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin408.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=345081601.0 tmax=345340801.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.52
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763277/ft1_filtered_4FGL_J1231.1-1412_daily_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/763277/ltcube_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.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/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits
.....................!
real 15.71
user 15.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763277/ft1_filtered_4FGL_J1231.1-1412_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/763277/ltcube_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.fits outfile=/scratch/kocevski/763277/expmap_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.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/763277/ltcube_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.fits
.....................!
real 191.29
user 186.02
sys 4.74

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/763277/ft1_filtered_4FGL_J1231.1-1412_daily_bin408.fits scfile=/scratch/kocevski/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits outfile=/scratch/kocevski/763277/cmap_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763277/ft1_filtered_4FGL_J1231.1-1412_daily_bin408.fits scfile=/scratch/kocevski/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits outfile=/scratch/kocevski/763277/cmap_HighResolution_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763277/ft1_filtered_4FGL_J1231.1-1412_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/763277/ft2_4FGL_J1231.1-1412_daily_bin408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763277/Model_4FGL_J1231.1-1412_daily_bin408.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/763277/ft1_filtered_4FGL_J1231.1-1412_daily_bin408.fits.....................!
real 65.73
user 64.17
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.923       1.0000         .10000E-03   10000.    
     4 'norm      '    .11443E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25677E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .98182       1.0000         .10000E-03   10000.    
    18 'norm      '    14.791       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8875       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1905       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96867       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=   8009.244     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2574 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9263        3.0810       -.32633E-06   -.23000E-03
   2  Prefactor     .10000E-03    4.7901       -.49256E-06** at limit **
   3  Prefactor     22.900        18.113        .33250E-06    .10832E-03
   4  norm          .10000E-03    3.6132       -.27083E-06** at limit **
   5  Prefactor     .10000E-03    27.722       -.20848E-05** at limit **
   6  Prefactor     .10000E-03    15.400        .31928E-05** at limit **
   7  Prefactor     50.736        44.437        .15572E-04   -.21796E-04
   8  Prefactor     70.690        43.424        .66197E-05    .15696E-04
   9  Prefactor     .10000E-03    5.2410       -.11249E-07** at limit **
  10  Prefactor     .10000E-03    8.6404       -.10158E-05** at limit **
  11  Prefactor     .10010E-03    2.9479        .44919E-06** at limit **
  12  Prefactor     5.4495        1.9894        .13970E-06   -.10132E-03
  13  Prefactor     .35869        5.9044        .74188E-06   -.52081E-03
  14  Prefactor     .10000E-03    3.1315        .52415E-06** at limit **
  15  Prefactor     .10000E-03    16.479       -.44947E-05** at limit **
  16  Prefactor     .10000E-03    44.349        .42747E-05** at limit **
  17  norm          .98189        .26994        .54473E-07   -.25767E-03
  18  norm          14.792        9.7880        .31544E-06   -.80801E-04
  19  norm          1.8349        4.3300       -.70582E-06   -.10370E-02
  20  Prefactor     .10000E-03    1.9001        .18593E-06** at limit **
  21  Prefactor     9.8890        11.671        .37540E-06   -.55521E-04
  22  Normalizat    1.1907        .21465       -.15472E-05   -.77074E-04
  23  Prefactor     .96847        .12040       -.27362E-06   -.16968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92635
  Prefactor  = 0.0001
  Prefactor  = 22.8997
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 50.7358
  Prefactor  = 70.6905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  Prefactor  = 5.44954
  Prefactor  = 0.358685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.981886
  norm       = 14.7918
  norm       = 1.83486
  Prefactor  = 0.0001
  Prefactor  = 9.88899
  Normalizat = 1.19075
  Prefactor  = 0.968469
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.244     FROM HESSE     STATUS=OK           378 CALLS     2952 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9263        3.0836        .13456E-03   -1.5312    
   2  Prefactor     .10000E-03    4.7968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.900        15.712        .83662E-04   -1.4751    
   4  norm          .10000E-03    7.8052        .28383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.736        43.821        .56310E-04   -1.4282    
   8  Prefactor     70.690        43.324        .23874E-03   -1.4024    
   9  Prefactor     .10000E-03    5.2436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10010E-03    2.8168        .49479E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4495        1.9907        .73757E-04   -1.5241    
  13  Prefactor     .35869        53.569        .41647E-02   -1.5588    
  14  Prefactor     .10000E-03    3.1391        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .98189        .27002        .23333E-04   -1.5510    
  18  norm          14.792        9.7889        .10414E-03   -1.4939    
  19  norm          1.8349        4.3604        .27814E-03   -1.5437    
  20  Prefactor     .10000E-03    1.9067        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.8890        11.667        .12744E-03   -1.5079    
  22  Normalizat    1.1907        .25332        .32975E-03   -.86889    
  23  Prefactor     .96847        .14293        .20449E-03   -.93788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3218e-09
Minuit parameter uncertainties:
  1  3.08371
  2  2.48321e-08
  3  15.7153
  4  0.000311395
  5  0.000210429
  6  0.000238495
  7  43.8486
  8  43.343
  9  7.73065e-06
  10  6.24105e-06
  11  0.00108729
  12  1.99074
  13  8.77365
  14  2.18994e-06
  15  4.61054e-07
  16  6.88014e-05
  17  0.270022
  18  9.78991
  19  4.36117
  20  6.34898e-06
  21  11.6697
  22  0.253583
  23  0.142989
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.450e+00  1.991e+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:  9.685e-01  1.430e-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.191e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.71
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 5.05e-05 +/- 1.85e-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) = 8008.63252722
delta logL = 0.611423829946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8008.57481108
delta logL = 0.669139977163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7393       1.0000         .10000E-03   10000.    
     2 'Index1    '    .88909E-01   1.0000          .0000       10.000    
     3 'Normalizat'    1.2023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96995       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=   8008.575     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7388        1.7834        .46207E-02    .65764E-03
   2  Index1        .88817E-01    .27919        .50000        .69113E-04
   3  Normalizat    1.2023        .21002        .74201E-01    .16896E-04
   4  Prefactor     .96996        .11914        .45890E-01    .67495E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73878
  Index1     = 0.0888165
  Normalizat = 1.20233
  Prefactor  = 0.969963
 **********
 **   18 **HESSE 
 **********

 FCN=   8008.575     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7388        2.1333        .71511E-04   -1.5273    
   2  Index1        .88817E-01    .64881        .26117E-01   -1.3820    
   3  Normalizat    1.2023        .24765        .32838E-03   -.86531    
   4  Prefactor     .96996        .14126        .20441E-03   -.93738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14407e-08
Minuit parameter uncertainties:
  1  2.13328
  2  0.487743
  3  0.247887
  4  0.14131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763277': 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) = 8008.57481104
delta logL = 0.669140011433

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.739e+00  2.133e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  8.882e-02  4.877e-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:  9.700e-01  1.413e-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.202e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.01
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.09 +/- 0.49
Photon Flux (Free Index): 3.97e-08 +/- 1.98e-08
Energy Flux (Free Index): 6.18e-05 +/- 2.60e-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/763277/cmap_HighResolution_345081601_345340801_4FGL_J1231.1-1412_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='6.18e-05', photon_flux_error='2.15e-08', dlogl='6.69e-01', energy_flux='5.05e-05', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-09-05 22:06:00.771411', photon_index_error2='0.49', photon_index2='0.09', ts='35.71', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='1.19', time_epoch_completed='1630904760.77', return_code='0', job_id='763277', GAL2='0.97', EG2='1.20', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='1.98e-08', ts2='37.01', photon_index='0.63' WHERE bin_id='408' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 763277: <4FGL_J1231.1-1412_daily_bin408> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin408> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:24 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:51:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:51:09 2021
Terminated at Sun Sep  5 22:06:01 2021
Results reported at Sun Sep  5 22:06:01 2021

Your job looked like:

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

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

