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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin381
RA = 187.798, Dec = -14.2014
tmin = 338083201, tmax = 338342401
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='763239', job_status='RUN', time_executed='2021-09-05 21:53:00.581557', time_epoch_executed='1630903980.58' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763239

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763239/ft1_4FGL_J1231.1-1412_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763239/ft1_4FGL_J1231.1-1412_daily_bin381.fits outfile=/scratch/kocevski/763239/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin381.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.76
user 6.45
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763239/ft1_filtered_4FGL_J1231.1-1412_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/763239/ltcube_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.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/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits
.....................!
real 16.36
user 15.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763239/ft1_filtered_4FGL_J1231.1-1412_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/763239/ltcube_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.fits outfile=/scratch/kocevski/763239/expmap_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.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/763239/ltcube_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.fits
.....................!
real 191.29
user 185.85
sys 4.86

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/763239/ft1_filtered_4FGL_J1231.1-1412_daily_bin381.fits scfile=/scratch/kocevski/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits outfile=/scratch/kocevski/763239/cmap_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763239/ft1_filtered_4FGL_J1231.1-1412_daily_bin381.fits scfile=/scratch/kocevski/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits outfile=/scratch/kocevski/763239/cmap_HighResolution_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763239/ft1_filtered_4FGL_J1231.1-1412_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/763239/ft2_4FGL_J1231.1-1412_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763239/Model_4FGL_J1231.1-1412_daily_bin381.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/763239/ft1_filtered_4FGL_J1231.1-1412_daily_bin381.fits.....................!
real 64.77
user 63.20
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.728       1.0000         .10000E-03   10000.    
     4 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75318E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8122       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3251       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5378       1.0000         .10000E-03   10000.    
    18 'norm      '    19.302       1.0000         .10000E-03   10000.    
    19 'norm      '    .11443       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5303       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3262       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1451       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=   8036.020     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2612 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8529        4.0582        .24498E-06   -.39164E-03
   2  Prefactor     .10000E-03    5.0532        .73686E-09** at limit **
   3  Prefactor     43.727        19.778        .13742E-06   -.29857E-04
   4  norm          .10000E-03    5.7721        .77355E-08** at limit **
   5  Prefactor     .10000E-03    104.62        .20556E-05** at limit **
   6  Prefactor     2.2674        40.131        .49619E-05    .11434E-03
   7  Prefactor     45.931        58.811        .25049E-05    .18648E-03
   8  Prefactor     .10001E-03    84.530       -.47990E-05** at limit **
   9  Prefactor     .10000E-03    9.9437       -.52712E-07** at limit **
  10  Prefactor     27.971        29.570       -.27837E-05   -.32845E-03
  11  Prefactor     .10000E-03    1.7931       -.15818E-07** at limit **
  12  Prefactor     7.8117        2.6069       -.25828E-07    .69471E-05
  13  Prefactor     .10000E-03    7.4831        .49024E-07** at limit **
  14  Prefactor     5.3217        9.9781        .29770E-05   -.80086E-03
  15  Prefactor     .10000E-03    30.186        .24290E-05** at limit **
  16  Prefactor     .10002E-03    33.959       -.70885E-05** at limit **
  17  norm          1.5377        .33455        .67239E-08   -.34126E-03
  18  norm          19.303        10.479        .43115E-06    .12133E-03
  19  norm          .71676E-01    4.7069        .13983E-05   -.92509E-03
  20  Prefactor     1.5492        4.4630        .16651E-06   -.71888E-03
  21  Prefactor     .10000E-03    2.5370        .27785E-07** at limit **
  22  Normalizat    1.3261        .26228       -.13203E-05   -.11621E-03
  23  Prefactor     1.1454        .14280       -.97307E-07   -.26713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85288
  Prefactor  = 0.0001
  Prefactor  = 43.7271
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26738
  Prefactor  = 45.9307
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 27.9707
  Prefactor  = 0.0001
  Prefactor  = 7.81172
  Prefactor  = 0.0001
  Prefactor  = 5.32173
  Prefactor  = 0.000100002
  Prefactor  = 0.000100017
  norm       = 1.53769
  norm       = 19.3035
  norm       = 0.071676
  Prefactor  = 1.54922
  Prefactor  = 0.0001
  Normalizat = 1.32609
  Prefactor  = 1.14535
 **********
 **   18 **HESSE 
 **********

 FCN=   8036.020     FROM HESSE     STATUS=OK           374 CALLS     2986 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8529        4.1148        .25925E-03   -1.5436    
   2  Prefactor     .10000E-03    5.0565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.727        19.693        .60627E-04   -1.4384    
   4  norm          .10000E-03    5.8796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    105.54        .20938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2674        38.851        .26865E-03   -1.5407    
   7  Prefactor     45.931        58.011        .59159E-04   -1.4351    
   8  Prefactor     .10001E-03    85.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.971        30.098        .75737E-04   -1.4650    
  11  Prefactor     .10000E-03    1.7963        .11721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8117        2.6104        .81097E-04   -1.5149    
  13  Prefactor     .10000E-03    7.5205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3217        12.418        .87082E-03   -1.5247    
  15  Prefactor     .10000E-03    30.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    35.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5377        .33543        .23215E-04   -1.5460    
  18  norm          19.303        10.493        .91163E-04   -1.4829    
  19  norm          .71676E-01    4.3956        .52893E-01   -1.5654    
  20  Prefactor     1.5492        4.4361        .28437E-03   -1.5459    
  21  Prefactor     .10000E-03    2.5383        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3261        .31073        .36518E-03   -.82791    
  23  Prefactor     1.1454        .16838        .21839E-03   -.88030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84753e-09
Minuit parameter uncertainties:
  1  4.11544
  2  2.00486e-07
  3  19.6959
  4  1.16106e-05
  5  8.84718e-05
  6  18.7852
  7  58.0819
  8  0.0014593
  9  1.73608e-05
  10  30.1147
  11  1.80253e-07
  12  2.61044
  13  6.70193e-06
  14  12.4236
  15  0.000494063
  16  0.00157562
  17  0.335433
  18  10.4935
  19  1.1219
  20  4.43701
  21  1.77918e-06
  22  0.311172
  23  0.168463
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.812e+00  2.610e+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.145e+00  1.685e-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.326e+00  3.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.23
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 8.44e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 7.24e-05 +/- 2.42e-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) = 8035.96270022
delta logL = 0.0569867459562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8035.95796645
delta logL = 0.0617205226308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8042       1.0000         .10000E-03   10000.    
     2 'Index1    '    .76579       1.0000          .0000       10.000    
     3 'Normalizat'    1.3177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1463       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=   8035.958     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8007        41.754        .35884E-02   -.51217E-04
   2  Index1        .76513        5.9990        .28145        .65084E-04
   3  Normalizat    1.3177        .38564        .82700E-01    .26225E-04
   4  Prefactor     1.1464        .10817        .36043E-01    .25523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80072
  Index1     = 0.765127
  Normalizat = 1.31773
  Prefactor  = 1.14636
 **********
 **   18 **HESSE 
 **********

 FCN=   8035.958     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8007        2.5748        .79722E-04   -1.5149    
   2  Index1        .76513        .38498        .10059E-01   -1.0103    
   3  Normalizat    1.3177        .29275        .36612E-03   -.83039    
   4  Prefactor     1.1464        .16496        .21826E-03   -.87998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37224e-12
Minuit parameter uncertainties:
  1  2.57482
  2  0.386337
  3  0.293122
  4  0.165039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763239': 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) = 8035.95796375
delta logL = 0.0617232168452

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.801e+00  2.575e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.651e-01  3.863e-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.146e+00  1.650e-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.318e+00  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.26
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.77 +/- 0.39
Photon Flux (Free Index): 9.44e-08 +/- 4.26e-08
Energy Flux (Free Index): 6.96e-05 +/- 2.42e-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/763239/cmap_HighResolution_338083201_338342401_4FGL_J1231.1-1412_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.44e-08', energy_flux2='6.96e-05', photon_flux_error='2.82e-08', dlogl='6.17e-02', energy_flux='7.24e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-09-05 22:05:34.687026', photon_index_error2='0.39', photon_index2='0.77', ts='36.23', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='1.33', time_epoch_completed='1630904734.69', return_code='0', job_id='763239', GAL2='1.15', EG2='1.32', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='4.26e-08', ts2='36.26', photon_index='0.63' WHERE bin_id='381' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 763239: <4FGL_J1231.1-1412_daily_bin381> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin381> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:21 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:50:51 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:50:51 2021
Terminated at Sun Sep  5 22:05:35 2021
Results reported at Sun Sep  5 22:05:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin381 187.798 -14.2014 338083201 338342401 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 :                                   744.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            914 sec.

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

