aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 13 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1745
RA = 187.798, Dec = -14.2014
tmin = 691632001, tmax = 691891201
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='645399', job_status='RUN', time_executed='2022-12-05 00:35:41.901393', time_epoch_executed='1670229341.9' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645399/ft1_4FGL_J1231.1-1412_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645399/ft2_4FGL_J1231.1-1412_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645399/ft1_4FGL_J1231.1-1412_daily_bin1745.fits outfile=/scratch/kocevski/645399/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1745.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.36
user 2.16
sys 0.19

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

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

Number of photons that the gtmktime cut: 1091

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645399/ft1_filtered_4FGL_J1231.1-1412_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/645399/ft2_4FGL_J1231.1-1412_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/645399/ltcube_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.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/645399/ft2_4FGL_J1231.1-1412_daily_bin1745.fits
.....................!
real 12.38
user 11.97
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645399/ft1_filtered_4FGL_J1231.1-1412_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/645399/ft2_4FGL_J1231.1-1412_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/645399/ltcube_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.fits outfile=/scratch/kocevski/645399/expmap_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.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/645399/ltcube_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.fits
.....................!
real 190.05
user 184.60
sys 5.10

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/645399/ft1_filtered_4FGL_J1231.1-1412_daily_bin1745.fits scfile=/scratch/kocevski/645399/ft2_4FGL_J1231.1-1412_daily_bin1745.fits outfile=/scratch/kocevski/645399/cmap_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645399/ft1_filtered_4FGL_J1231.1-1412_daily_bin1745.fits scfile=/scratch/kocevski/645399/ft2_4FGL_J1231.1-1412_daily_bin1745.fits outfile=/scratch/kocevski/645399/cmap_HighResolution_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44703E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25577E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20187E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.4445       1.0000          .0000       .10000E+07
     5 'Prefactor '    .77935E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .73636E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10899E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23242E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4273       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.4189       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3447       1.0000          .0000       .10000E+07
    12 'Prefactor '    .25817E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.2644       1.0000          .0000       .10000E+07
    14 'Prefactor '    .55451E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .20634       1.0000          .0000       .10000E+07
    16 'norm      '    1.8355       1.0000          .0000       .10000E+07
    17 'norm      '    .20733E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.6419       1.0000          .0000       .10000E+07
    19 'Prefactor '    .24204E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2979       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11716.09     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1257 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .89967        .98024E-07** at limit **
   2  Prefactor     .23576E-06    3.0760       -.56845E-06** at limit **
   3  Prefactor     .22865E-06    2.9440       -.11211E-05** at limit **
   4  norm          3.4556        3.1046        .15684E-06   -.42382E-04
   5  Prefactor     .20928E-07    3.1384        .42820E-06** at limit **
   6  Prefactor     .39363E-06    4.0640       -.14718E-06** at limit **
   7  Prefactor     .88929E-07    9.5956       -.13040E-05** at limit **
   8  Prefactor     .11102E-09    15.584       -.27835E-06** at limit **
   9  Prefactor     1.4094        2.7953        .10565E-05    .17285E-02
  10  Prefactor     4.4218        1.5803       -.45562E-06    .27849E-03
  11  Prefactor     4.3436        1.3739       -.10271E-07    .86045E-02
  12  Prefactor     .84710E-07    4.7221       -.19725E-06** at limit **
  13  Prefactor     6.2839        1.4929       -.14124E-06    .18878E-01
  14  Prefactor     .95313E-07    .94182        .68810E-07** at limit **
  15  norm          .20633        .12515       -.31364E-07** at limit **
  16  norm          1.8190        7.0144        .17387E-05    .13194E-01
  17  norm          .55511E-10    2.1846        .31635E-06** at limit **
  18  Prefactor     4.6313        4.0298       -.24803E-06    .29310E-02
  19  Prefactor     .95479E-08    2.9625       -.47558E-06** at limit **
  20  Normalizat    1.2981        .19779        .30177E-05    .62845E-04
  21  Prefactor     1.0362        .11557       -.32292E-05    .12904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 2.35756e-07
  Prefactor  = 2.2865e-07
  norm       = 3.4556
  Prefactor  = 2.09277e-08
  Prefactor  = 3.9363e-07
  Prefactor  = 8.89289e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 1.40936
  Prefactor  = 4.4218
  Prefactor  = 4.34362
  Prefactor  = 8.471e-08
  Prefactor  = 6.28389
  Prefactor  = 9.53126e-08
  norm       = 0.206328
  norm       = 1.81899
  norm       = 5.55112e-11
  Prefactor  = 4.63133
  Prefactor  = 9.54792e-09
  Normalizat = 1.29807
  Prefactor  = 1.03619
 **********
 **   18 **HESSE 
 **********

 FCN=   11716.09     FROM HESSE     STATUS=OK           355 CALLS     1612 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .90019        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .23576E-06    5.1155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22865E-06    5.5574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4556        3.1149        .54471E-03   -1.5671    
   5  Prefactor     .20928E-07    3.3102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .39363E-06    8.7740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .88929E-07    10.420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    15.508        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4094        2.8317        .90432E-03   -1.5684    
  10  Prefactor     4.4218        1.5838        .47893E-02   -1.5287    
  11  Prefactor     4.3436        7.9853        .48301E-03   -1.5666    
  12  Prefactor     .84710E-07    8.0291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2839        19.400        .40083E-03   -1.5658    
  14  Prefactor     .95313E-07    61.066        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .20633        .13223        .65368E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8190        7.1177        .76984E-03   -1.5681    
  17  norm          .55511E-10    2.1832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6313        4.0346        .46689E-03   -1.5665    
  19  Prefactor     .95479E-08    3.0402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2981        .16949        .69923E-01   -.83624    
  21  Prefactor     1.0362        .98682E-01    .40794E-01   -.91533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98049e-07
Minuit parameter uncertainties:
  1  6.65762e-06
  2  0.00219625
  3  0.00225454
  4  3.1149
  5  0.000526263
  6  0.00371685
  7  0.00192527
  8  9.12009e-05
  9  2.83171
  10  1.58386
  11  7.98535
  12  0.00164944
  13  19.3998
  14  0.00482448
  15  0.13223
  16  7.11775
  17  2.64193e-05
  18  4.03459
  19  0.000341069
  20  0.169567
  21  0.0986988
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.422e+00  1.584e+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.036e+00  9.870e-02  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.298e+00  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.18
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 1.47e-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) = 11715.9467156
delta logL = 0.144992855045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11715.9243347
delta logL = 0.16737370135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3808       1.0000         .10000E-03   10000.    
     2 'Index1    '    .85338       1.0000          .0000       10.000    
     3 'Normalizat'    1.2909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       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=   11715.92     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3807        26.584        .48107E-02    .17104E-02
   2  Index1        .85337        5.9071        .23349        .12807E-03
   3  Normalizat    1.2909        .24705        .70078E-01    .46850E-03
   4  Prefactor     1.0367        .79443E-01    .40764E-01    .61778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.38074
  Index1     = 0.85337
  Normalizat = 1.29086
  Prefactor  = 1.03666
 **********
 **   18 **HESSE 
 **********

 FCN=   11715.92     FROM HESSE     STATUS=OK            27 CALLS      267 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3807        1.5320        .75362E-04   -1.5289    
   2  Index1        .85337        .38396        .12053E-01   -.97790    
   3  Normalizat    1.2909        .19658        .31007E-03   -.83840    
   4  Prefactor     1.0367        .11506        .19897E-03   -.91517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0414e-10
Minuit parameter uncertainties:
  1  1.53197
  2  0.385178
  3  0.196695
  4  0.115089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645399': 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) = 11715.9243347
delta logL = 0.167373705282

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  4.381e+00  1.532e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  8.534e-01  3.852e-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.037e+00  1.151e-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.291e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.50
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.85 +/- 0.39
Photon Flux (Free Index): 5.76e-08 +/- 2.65e-08
Energy Flux (Free Index): 3.85e-05 +/- 1.39e-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/645399/cmap_HighResolution_691632001_691891201_4FGL_J1231.1-1412_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='3.85e-05', photon_flux_error='1.71e-08', dlogl='1.67e-01', energy_flux='4.10e-05', photon_flux2='5.76e-08', job_status='DONE', time_completed='2022-12-05 00:46:56.935547', photon_index_error2='0.39', photon_index2='0.85', ts='28.18', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.30', time_epoch_completed='1670230016.94', return_code='0', job_id='645399', GAL2='1.04', EG2='1.29', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='2.65e-08', ts2='28.50', photon_index='0.63' WHERE bin_id='1745' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:46:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 645399: <4FGL_J1231.1-1412_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:35:19 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:35:20 2022
Terminated at Mon Dec  5 00:46:57 2022
Results reported at Mon Dec  5 00:46:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1745 187.798 -14.2014 691632001 691891201 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 :                                   677.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            698 sec.

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

