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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1423
RA = 187.798, Dec = -14.2014
tmin = 608169601, tmax = 608428801
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='768513', job_status='RUN', time_executed='2021-09-05 22:07:10.088759', time_epoch_executed='1630904830.09' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768513/ft1_4FGL_J1231.1-1412_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768513/ft1_4FGL_J1231.1-1412_daily_bin1423.fits outfile=/scratch/kocevski/768513/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1423.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=608169601.0 tmax=608428801.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.71
user 3.43
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768513/ft1_filtered_4FGL_J1231.1-1412_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/768513/ltcube_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.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/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits
.....................!
real 15.92
user 15.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768513/ft1_filtered_4FGL_J1231.1-1412_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/768513/ltcube_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.fits outfile=/scratch/kocevski/768513/expmap_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.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/768513/ltcube_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.fits
.....................!
real 192.06
user 185.98
sys 5.57

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/768513/ft1_filtered_4FGL_J1231.1-1412_daily_bin1423.fits scfile=/scratch/kocevski/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits outfile=/scratch/kocevski/768513/cmap_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768513/ft1_filtered_4FGL_J1231.1-1412_daily_bin1423.fits scfile=/scratch/kocevski/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits outfile=/scratch/kocevski/768513/cmap_HighResolution_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/768513/ft1_filtered_4FGL_J1231.1-1412_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/768513/ft2_4FGL_J1231.1-1412_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/768513/Model_4FGL_J1231.1-1412_daily_bin1423.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/768513/ft1_filtered_4FGL_J1231.1-1412_daily_bin1423.fits.....................!
real 59.74
user 58.02
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.804       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.513       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.692       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1554       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6149       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9863       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4648       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65413       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1721       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=   7094.008     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2520 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.423        7.3860       -.34828E-07    .20540E-03
   2  Prefactor     .10000E-03    6.0130        .23355E-07** at limit **
   3  Prefactor     23.803        19.371        .86050E-08   -.45718E-04
   4  norm          .10000E-03    2.4413       -.18566E-07** at limit **
   5  Prefactor     .10000E-03    33.397       -.69967E-06** at limit **
   6  Prefactor     .10000E-03    4.6812        .13455E-07** at limit **
   7  Prefactor     .10000E-03    12.039        .41726E-07** at limit **
   8  Prefactor     20.508        45.578       -.32444E-07   -.46942E-04
   9  Prefactor     .10000E-03    23.450       -.11477E-05** at limit **
  10  Prefactor     10.530        87.704        .28018E-05   -.85494E-04
  11  Prefactor     .10000E-03    1.8914        .11239E-07** at limit **
  12  Prefactor     3.7563        2.0075        .19508E-08    .27416E-04
  13  Prefactor     5.0796        13.954        .11733E-06    .46743E-06
  14  Prefactor     14.692        12.379        .11833E-07    .54083E-05
  15  Prefactor     .10000E-03    17.113       -.21366E-06** at limit **
  16  Prefactor     .10000E-03    61.948        .18604E-05** at limit **
  17  norm          2.1554        .38001       -.42199E-08    .61732E-03
  18  norm          .10000E-03    2.4964        .55979E-07** at limit **
  19  norm          2.6154        10.279       -.50365E-05   -.42967E-03
  20  Prefactor     1.9856        12.618        .65750E-05   -.27746E-03
  21  Prefactor     9.4649        11.866        .12567E-07    .53404E-05
  22  Normalizat    .65426        .26230        .22338E-06    .26599E-04
  23  Prefactor     1.1720        .14443       -.86963E-07   -.14748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.4227
  Prefactor  = 0.0001
  Prefactor  = 23.8028
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5076
  Prefactor  = 0.000100003
  Prefactor  = 10.5299
  Prefactor  = 0.0001
  Prefactor  = 3.75631
  Prefactor  = 5.07958
  Prefactor  = 14.6917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15538
  norm       = 0.0001
  norm       = 2.6154
  Prefactor  = 1.98562
  Prefactor  = 9.46488
  Normalizat = 0.654258
  Prefactor  = 1.17199
 **********
 **   18 **HESSE 
 **********

 FCN=   7094.008     FROM HESSE     STATUS=OK           364 CALLS     2884 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.423        7.3822        .70371E-04   -1.4569    
   2  Prefactor     .10000E-03    6.0195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.803        19.309        .82101E-04   -1.4732    
   4  norm          .10000E-03    2.4472        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6850        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.508        45.434        .88449E-04   -1.4802    
   9  Prefactor     .10000E-03    23.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.530        85.596        .12357E-03   -1.5059    
  11  Prefactor     .10000E-03    1.8970        .11309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7563        2.0087        .84435E-04   -1.5320    
  13  Prefactor     5.0796        13.951        .17841E-03   -1.5257    
  14  Prefactor     14.692        12.381        .52246E-03   -1.4941    
  15  Prefactor     .10000E-03    17.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    62.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1554        .38073        .20770E-04   -1.5414    
  18  norm          .10000E-03    2.5030        .12995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6154        10.918        .12612E-02   -1.5385    
  20  Prefactor     1.9856        13.883        .14701E-02   -1.5426    
  21  Prefactor     9.4649        11.858        .13026E-03   -1.5093    
  22  Normalizat    .65426        .28570        .44235E-03   -1.0573    
  23  Prefactor     1.1720        .15890        .19143E-03   -.87198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42644e-10
Minuit parameter uncertainties:
  1  7.38245
  2  3.39374e-06
  3  19.3138
  4  4.68347e-06
  5  0.000128054
  6  9.76561e-07
  7  3.56001e-06
  8  45.511
  9  0.000545705
  10  60.1616
  11  2.03668e-06
  12  2.00871
  13  13.9594
  14  12.3832
  15  3.78379e-05
  16  0.000145581
  17  0.380729
  18  2.95056e-06
  19  10.6903
  20  10.504
  21  11.8613
  22  0.286345
  23  0.158965
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  3.756e+00  2.009e+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.172e+00  1.590e-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:  6.543e-01  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.58
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 4.06e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 1.86e-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) = 7093.96565669
delta logL = 0.04195277298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7093.9650827
delta logL = 0.0425267639239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7771       1.0000         .10000E-03   10000.    
     2 'Index1    '    .78621       1.0000          .0000       10.000    
     3 'Normalizat'    .65082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1717       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=   7093.965     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7771        1.9841        .83160E-04   -.17917E-03
   2  Index1        .78612        .53295        .13988E-01    .19700E-03
   3  Normalizat    .65076        .27118        .44344E-03    .70246E-05
   4  Prefactor     1.1717        .15469        .19143E-03    .17282E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77713
  Index1     = 0.786117
  Normalizat = 0.650759
  Prefactor  = 1.17173
 **********
 **   18 **HESSE 
 **********

 FCN=   7093.965     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7771        1.9812        .16632E-04   -1.5319    
   2  Index1        .78612        .53214        .27975E-02   -1.0024    
   3  Normalizat    .65076        .27127        .17738E-04   -1.0587    
   4  Prefactor     1.1717        .15477        .76570E-05   -.87206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12139e-11
Minuit parameter uncertainties:
  1  1.98119
  2  0.535672
  3  0.271824
  4  0.154826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768513': 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) = 7093.96508263
delta logL = 0.0425268282679

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  3.777e+00  1.981e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.861e-01  5.357e-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.172e+00  1.548e-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:  6.508e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.64
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.79 +/- 0.54
Photon Flux (Free Index): 4.66e-08 +/- 3.25e-08
Energy Flux (Free Index): 3.36e-05 +/- 1.81e-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/768513/cmap_HighResolution_608169601_608428801_4FGL_J1231.1-1412_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.06e-08', energy_flux2='3.36e-05', photon_flux_error='2.17e-08', dlogl='4.25e-02', energy_flux='3.48e-05', photon_flux2='4.66e-08', job_status='DONE', time_completed='2021-09-05 22:19:04.230526', photon_index_error2='0.54', photon_index2='0.79', ts='12.58', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.65', time_epoch_completed='1630905544.23', return_code='0', job_id='768513', GAL2='1.17', EG2='0.65', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='3.25e-08', ts2='12.64', photon_index='0.63' WHERE bin_id='1423' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:19:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 768513: <4FGL_J1231.1-1412_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1423 187.798 -14.2014 608169601 608428801 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 :                                   662.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            794 sec.

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

