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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin975
RA = 187.798, Dec = -14.2014
tmin = 492048001, tmax = 492307201
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='766697', job_status='RUN', time_executed='2021-09-05 22:03:52.227481', time_epoch_executed='1630904632.23' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766697/ft1_4FGL_J1231.1-1412_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766697/ft1_4FGL_J1231.1-1412_daily_bin975.fits outfile=/scratch/kocevski/766697/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin975.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=492048001.0 tmax=492307201.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.95
user 3.59
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766697/ft1_filtered_4FGL_J1231.1-1412_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/766697/ltcube_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.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/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits
.....................!
real 17.55
user 17.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766697/ft1_filtered_4FGL_J1231.1-1412_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/766697/ltcube_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.fits outfile=/scratch/kocevski/766697/expmap_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.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/766697/ltcube_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.fits
.....................!
real 191.77
user 186.64
sys 4.31

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/766697/ft1_filtered_4FGL_J1231.1-1412_daily_bin975.fits scfile=/scratch/kocevski/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits outfile=/scratch/kocevski/766697/cmap_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.798 yref=-14.2014 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766697/ft1_filtered_4FGL_J1231.1-1412_daily_bin975.fits scfile=/scratch/kocevski/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits outfile=/scratch/kocevski/766697/cmap_HighResolution_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766697/ft1_filtered_4FGL_J1231.1-1412_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/766697/ft2_4FGL_J1231.1-1412_daily_bin975.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766697/Model_4FGL_J1231.1-1412_daily_bin975.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/766697/ft1_filtered_4FGL_J1231.1-1412_daily_bin975.fits.....................!
real 72.10
user 70.59
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23180E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    114.11       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3859       1.0000         .10000E-03   10000.    
    18 'norm      '    .20367       1.0000         .10000E-03   10000.    
    19 'norm      '    31.774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4872       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58460       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5074       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95977       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=   8672.846     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2603 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1067        4.1069        .11888E-06   -.46997E-03
   2  Prefactor     .10000E-03    10.408        .99734E-07** at limit **
   3  Prefactor     .10000E-03    23.447       -.43123E-05** at limit **
   4  norm          2.2875        3.6299        .20888E-06   -.57247E-03
   5  Prefactor     .10000E-03    44.206       -.14681E-04** at limit **
   6  Prefactor     .10000E-03    22.431        .42320E-05** at limit **
   7  Prefactor     2.6653        151.45        .47411E-05   -.61844E-05
   8  Prefactor     .10000E-03    13.063        .95448E-07** at limit **
   9  Prefactor     .10000E-03    6.0038        .50895E-07** at limit **
  10  Prefactor     41.746        30.087       -.93737E-06   -.55086E-06
  11  Prefactor     .10000E-03    4.2565       -.40820E-07** at limit **
  12  Prefactor     6.5045        2.4270       -.38675E-07   -.13821E-04
  13  Prefactor     11.298        11.309       -.70604E-06   -.39503E-04
  14  Prefactor     23.276        17.242        .43496E-05   -.41849E-04
  15  Prefactor     .10000E-03    41.940        .15127E-04** at limit **
  16  Prefactor     114.20        99.182        .56639E-04    .67234E-05
  17  norm          1.3856        .44949        .11589E-07   -.97371E-03
  18  norm          .22102        3.7414       -.11148E-05   -.30965E-03
  19  norm          31.770        9.3430       -.35374E-05    .15740E-03
  20  Prefactor     3.4869        3.8639       -.97648E-06   -.12976E-03
  21  Prefactor     .42176        12.793       -.36051E-07   -.96520E-04
  22  Normalizat    1.5078        .24224       -.26610E-05    .71282E-04
  23  Prefactor     .95959        .12721       -.11466E-05    .38843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10673
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.2875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7464
  Prefactor  = 0.0001
  Prefactor  = 6.50447
  Prefactor  = 11.2977
  Prefactor  = 23.2757
  Prefactor  = 0.0001
  Prefactor  = 114.198
  norm       = 1.38564
  norm       = 0.221021
  norm       = 31.7703
  Prefactor  = 3.48686
  Prefactor  = 0.421756
  Normalizat = 1.50778
  Prefactor  = 0.959588
 **********
 **   18 **HESSE 
 **********

 FCN=   8672.846     FROM HESSE     STATUS=OK           386 CALLS     2989 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1067        4.1076        .18080E-03   -1.5303    
   2  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.958        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2875        3.5823        .21020E-03   -1.5405    
   5  Prefactor     .10000E-03    44.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6653        151.67        .24129E-03   -1.5381    
   8  Prefactor     .10000E-03    13.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.746        30.098        .62047E-04   -1.4415    
  11  Prefactor     .10000E-03    4.3122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5045        2.4267        .85521E-04   -1.5198    
  13  Prefactor     11.298        11.314        .11919E-03   -1.5036    
  14  Prefactor     23.276        17.338        .83043E-04   -1.4743    
  15  Prefactor     .10000E-03    41.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     114.20        99.052        .18830E-03   -1.3567    
  17  norm          1.3856        .44756        .34359E-04   -1.5473    
  18  norm          .22102        21.675        .34862E-02   -1.5614    
  19  norm          31.770        9.3265        .71083E-04   -1.4580    
  20  Prefactor     3.4869        3.8561        .18232E-03   -1.5334    
  21  Prefactor     .42176        15.634        .10052       -1.5578    
  22  Normalizat    1.5078        .28665        .34671E-03   -.77560    
  23  Prefactor     .95959        .15055        .22620E-03   -.94089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44398e-10
Minuit parameter uncertainties:
  1  4.10786
  2  2.98134e-05
  3  0.000235154
  4  3.58267
  5  5.93295e-05
  6  3.19647e-05
  7  40.3184
  8  1.7278e-05
  9  1.40734e-05
  10  30.1087
  11  8.06553e-06
  12  2.42678
  13  11.3163
  14  17.3421
  15  6.40405e-06
  16  99.1962
  17  0.447563
  18  4.37819
  19  9.3269
  20  3.85641
  21  5.13652
  22  0.286962
  23  0.150611
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.504e+00  2.427e+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.596e-01  1.506e-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.508e+00  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.19
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 7.03e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 6.03e-05 +/- 2.25e-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) = 8672.47029804
delta logL = 0.375868134399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8672.46690771
delta logL = 0.37925846225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3399       1.0000         .10000E-03   10000.    
     2 'Index1    '    .98785       1.0000          .0000       10.000    
     3 'Normalizat'    1.4867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96243       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=   8672.467     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3399        35.310        .39853E-02   -.20581E-02
   2  Index1        .98780        5.1006        .25927       -.91350E-04
   3  Normalizat    1.4867        .23625        .78752E-01    .68933E-04
   4  Prefactor     .96243        .67823E-01    .45796E-01    .30498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33985
  Index1     = 0.987803
  Normalizat = 1.48668
  Prefactor  = 0.962427
 **********
 **   18 **HESSE 
 **********

 FCN=   8672.467     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3399        2.3732        .80775E-04   -1.5204    
   2  Index1        .98780        .40339        .89944E-02   -.93137    
   3  Normalizat    1.4867        .27412        .34854E-03   -.78153    
   4  Prefactor     .96243        .14735        .22578E-03   -.93993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8398e-10
Minuit parameter uncertainties:
  1  2.37327
  2  0.404625
  3  0.274393
  4  0.147407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766697': 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) = 8672.46690771
delta logL = 0.379258467598

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.340e+00  2.373e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  9.878e-01  4.046e-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.624e-01  1.474e-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.487e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.86
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.99 +/- 0.40
Photon Flux (Free Index): 9.59e-08 +/- 4.65e-08
Energy Flux (Free Index): 5.56e-05 +/- 2.05e-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/766697/cmap_HighResolution_492048001_492307201_4FGL_J1231.1-1412_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.03e-08', energy_flux2='5.56e-05', photon_flux_error='2.62e-08', dlogl='3.79e-01', energy_flux='6.03e-05', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-09-05 22:16:35.038001', photon_index_error2='0.40', photon_index2='0.99', ts='26.19', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.51', time_epoch_completed='1630905395.04', return_code='0', job_id='766697', GAL2='0.96', EG2='1.49', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='4.65e-08', ts2='26.86', photon_index='0.63' WHERE bin_id='975' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:16:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 766697: <4FGL_J1231.1-1412_daily_bin975> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin975> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:45 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:01:49 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:01:49 2021
Terminated at Sun Sep  5 22:16:35 2021
Results reported at Sun Sep  5 22:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin975 187.798 -14.2014 492048001 492307201 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 :                                   755.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            950 sec.

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

