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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin175
RA = 187.798, Dec = -14.2014
tmin = 284688001, tmax = 284947201
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='761789', job_status='RUN', time_executed='2021-09-05 21:49:44.884496', time_epoch_executed='1630903784.88' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761789

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761789/ft1_4FGL_J1231.1-1412_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761789/ft2_4FGL_J1231.1-1412_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761789/ft1_4FGL_J1231.1-1412_daily_bin175.fits outfile=/scratch/kocevski/761789/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin175.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=284688001.0 tmax=284947201.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.72
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/761789/ft2_4FGL_J1231.1-1412_daily_bin175.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/761789/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin175.fits evtable="EVENTS" outfile="/scratch/kocevski/761789/ft1_filtered_4FGL_J1231.1-1412_daily_bin175.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/761789/ft1_filtered_4FGL_J1231.1-1412_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/761789/ft2_4FGL_J1231.1-1412_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/761789/ltcube_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.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/761789/ft2_4FGL_J1231.1-1412_daily_bin175.fits
.....................!
real 17.82
user 17.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761789/ft1_filtered_4FGL_J1231.1-1412_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/761789/ft2_4FGL_J1231.1-1412_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/761789/ltcube_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.fits outfile=/scratch/kocevski/761789/expmap_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.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/761789/ltcube_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.fits
.....................!
real 194.60
user 189.25
sys 4.84

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/761789/ft1_filtered_4FGL_J1231.1-1412_daily_bin175.fits scfile=/scratch/kocevski/761789/ft2_4FGL_J1231.1-1412_daily_bin175.fits outfile=/scratch/kocevski/761789/cmap_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761789/ft1_filtered_4FGL_J1231.1-1412_daily_bin175.fits scfile=/scratch/kocevski/761789/ft2_4FGL_J1231.1-1412_daily_bin175.fits outfile=/scratch/kocevski/761789/cmap_HighResolution_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.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.60
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11277E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2742       1.0000         .10000E-03   10000.    
     4 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14755E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3233       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6722       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1269       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2741       1.0000         .10000E-03   10000.    
    19 'norm      '    9.2685       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .72406E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8977       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0571       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=   8099.536     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2240 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1642       -.11219E-07** at limit **
   2  Prefactor     20.014        14.783       -.46028E-07   -.40401E-05
   3  Prefactor     2.2879        12.153       -.52905E-05   -.26856E-03
   4  norm          .10000E-03    2.5404        .33691E-06** at limit **
   5  Prefactor     .10000E-03    15.484       -.10307E-04** at limit **
   6  Prefactor     12.764        11.982        .15294E-06   -.25499E-04
   7  Prefactor     .10000E-03    16.549        .99734E-05** at limit **
   8  Prefactor     .10000E-03    11.471        .15995E-05** at limit **
   9  Prefactor     .10000E-03    6.1211       -.53947E-07** at limit **
  10  Prefactor     27.486        27.103        .14925E-05    .10445E-04
  11  Prefactor     .10000E-03    2.7069       -.11142E-06** at limit **
  12  Prefactor     2.3241        1.6507       -.50725E-07   -.19876E-04
  13  Prefactor     .10000E-03    3.3053        .58779E-07** at limit **
  14  Prefactor     5.6757        11.272       -.55531E-08   -.13909E-03
  15  Prefactor     .10000E-03    115.75        .83569E-04** at limit **
  16  Prefactor     .10001E-03    157.11       -.10934E-03** at limit **
  17  norm          1.1270        .29645       -.79971E-07   -.67369E-02
  18  norm          9.2750        7.8684       -.24265E-06    .64866E-05
  19  norm          9.2546        6.3937       -.22381E-05    .52761E-03
  20  Prefactor     .10949        3.8861        .11927E-05   -.24484E-03
  21  Prefactor     7.8978        8.4557       -.99191E-07   -.17352E-04
  22  Normalizat    1.1396        .22368        .35883E-06   -.69714E-04
  23  Prefactor     1.0571        .12219        .56355E-06   -.37859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.0137
  Prefactor  = 2.28793
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.7643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4863
  Prefactor  = 0.0001
  Prefactor  = 2.32414
  Prefactor  = 0.0001
  Prefactor  = 5.67568
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  norm       = 1.12703
  norm       = 9.27495
  norm       = 9.25458
  Prefactor  = 0.10949
  Prefactor  = 7.89778
  Normalizat = 1.13961
  Prefactor  = 1.05705
 **********
 **   18 **HESSE 
 **********

 FCN=   8099.536     FROM HESSE     STATUS=OK           374 CALLS     2614 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7291        .25352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.014        14.675        .89526E-04   -1.4813    
   3  Prefactor     2.2879        11.796        .27231E-03   -1.5405    
   4  norm          .10000E-03    2.5516        .27477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.764        11.984        .11211E-03   -1.4993    
   7  Prefactor     .10000E-03    16.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.486        27.102        .76438E-04   -1.4659    
  11  Prefactor     .10000E-03    6.8352        .28036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3241        1.6193        .92545E-04   -1.5403    
  13  Prefactor     .10000E-03    3.3095        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6757        11.284        .16866E-03   -1.5231    
  15  Prefactor     .10000E-03    116.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    155.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1270        .29701        .24031E-04   -1.5496    
  18  norm          9.2750        7.8660        .13160E-03   -1.5099    
  19  norm          9.2546        6.5436        .13164E-03   -1.5099    
  20  Prefactor     .10949        39.169        .31663E-02   -1.5642    
  21  Prefactor     7.8978        8.4572        .14268E-03   -1.5146    
  22  Normalizat    1.1396        .26225        .33818E-03   -.88490    
  23  Prefactor     1.0571        .14391        .19895E-03   -.90851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71834e-09
Minuit parameter uncertainties:
  1  4.18735e-05
  2  14.6774
  3  10.3929
  4  7.25334e-05
  5  5.73425e-06
  6  11.9865
  7  7.26636e-06
  8  9.56936e-06
  9  1.36723e-06
  10  27.1141
  11  3.97805e-06
  12  1.61929
  13  1.34197e-06
  14  11.2879
  15  0.000863357
  16  0.00247744
  17  0.297013
  18  7.8669
  19  6.54408
  20  4.14264
  21  8.4585
  22  0.262552
  23  0.143964
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  2.324e+00  1.619e+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.057e+00  1.440e-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.140e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.78
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.50e-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) = 8099.52946967
delta logL = 0.0060827870102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8099.52939048
delta logL = 0.00616197751515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3365       1.0000         .10000E-03   10000.    
     2 'Index1    '    .70734       1.0000          .0000       10.000    
     3 'Normalizat'    1.1385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0570       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=   8099.529     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      197 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3365        36.841        .67063E-02    .52623E-03
   2  Index1        .70734        6.9121        .42499        .69410E-04
   3  Normalizat    1.1385        .11476        .76437E-01    .13119E-05
   4  Prefactor     1.0570        .46224E-01    .39518E-01    .11216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33647
  Index1     = 0.707338
  Normalizat = 1.13851
  Prefactor  = 1.05697
 **********
 **   18 **HESSE 
 **********

 FCN=   8099.529     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3365        1.6075        .91868E-04   -1.5402    
   2  Index1        .70734        .69703        .15172E-01   -1.0324    
   3  Normalizat    1.1385        .24578        .33832E-03   -.88525    
   4  Prefactor     1.0570        .14102        .19895E-03   -.90854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51929e-10
Minuit parameter uncertainties:
  1  1.60757
  2  0.705914
  3  0.246025
  4  0.141074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761789': 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) = 8099.52939048
delta logL = 0.00616197762065

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  2.336e+00  1.608e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.073e-01  7.059e-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.057e+00  1.411e-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.139e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.79
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.71 +/- 0.71
Photon Flux (Free Index): 2.69e-08 +/- 2.43e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.51e-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/761789/cmap_HighResolution_284688001_284947201_4FGL_J1231.1-1412_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='2.11e-05', photon_flux_error='1.75e-08', dlogl='6.16e-03', energy_flux='2.15e-05', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-05 22:01:28.840304', photon_index_error2='0.71', photon_index2='0.71', ts='7.78', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.14', time_epoch_completed='1630904488.84', return_code='0', job_id='761789', GAL2='1.06', EG2='1.14', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.43e-08', ts2='7.79', photon_index='0.63' WHERE bin_id='175' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 761789: <4FGL_J1231.1-1412_daily_bin175> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin175 187.798 -14.2014 284688001 284947201 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 :                                   698.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            951 sec.

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

