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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1686
RA = 326.645, Dec = -13.7347
tmin = 676339201, tmax = 676598401
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='520560', job_status='RUN', time_executed='2022-06-11 00:47:09.338654', time_epoch_executed='1654933629.34' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520560/ft1_4FGL_J2146.5-1344_daily_bin1686.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520560/ft1_4FGL_J2146.5-1344_daily_bin1686.fits outfile=/scratch/kocevski/520560/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1686.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=676339201.0 tmax=676598401.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.33
user 2.14
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.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/520560/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1686.fits evtable="EVENTS" outfile="/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.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.47
user 0.29
sys 0.17

Number of photons that the gtmktime cut: 691

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits" evtable="EVENTS" scfile=/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits sctable="SC_DATA" outfile=/scratch/kocevski/520560/ltcube_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.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/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits
.....................!
real 16.84
user 16.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits sctable="SC_DATA" expcube=/scratch/kocevski/520560/ltcube_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.fits outfile=/scratch/kocevski/520560/expmap_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.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/520560/ltcube_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.fits
.....................!
real 161.24
user 155.71
sys 5.13

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2146.5-1344 @ 326.645 -13.7347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits scfile=/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits outfile=/scratch/kocevski/520560/cmap_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.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=326.645 yref=-13.7347 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.50
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits scfile=/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits outfile=/scratch/kocevski/520560/cmap_HighResolution_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.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=326.645 yref=-13.7347 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.51
user 0.33
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520560/Model_4FGL_J2146.5-1344_daily_bin1686.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/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits.....................!
real 57.63
user 56.29
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits', '/scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits', expMap='/scratch/kocevski/520560/expmap_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.fits', expCube='/scratch/kocevski/520560/ltcube_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520560/Model_4FGL_J2146.5-1344_daily_bin1686.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2146.5-1344'

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.495e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.382e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  2.840e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/520560/ft1_filtered_4FGL_J2146.5-1344_daily_bin1686.fits
Spacecraft file(s): /scratch/kocevski/520560/ft2_4FGL_J2146.5-1344_daily_bin1686.fits
Exposure map: /scratch/kocevski/520560/expmap_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.fits
Exposure cube: /scratch/kocevski/520560/ltcube_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520560/Model_4FGL_J2146.5-1344_daily_bin1686.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) = 7537.1345439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83425E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.593       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8328       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6887       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.9090       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .82969       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0334       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7537.131     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1644 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.384        .33658E-06** at limit **
   2  Prefactor     .11363E-03    6.1798        .50478E-06** at limit **
   3  Prefactor     20.597        43.223        .11400E-05   -.23588E-04
   4  Prefactor     1.8330        2.1121        .40591E-07    .13049E-03
   5  Prefactor     .10000E-03    2.3935        .10016E-07** at limit **
   6  Prefactor     11.550        37.954        .29760E-04   -.92380E-05
   7  Prefactor     8.6867        12.347        .24104E-05   -.89997E-04
   8  norm          2.6544        3.4161       -.12322E-06    .17148E-05
   9  Prefactor     .10000E-03    4.0663       -.25618E-07** at limit **
  10  Prefactor     .10000E-03    3.9253       -.63016E-07** at limit **
  11  Prefactor     .10000E-03    3.1430       -.83290E-08** at limit **
  12  Prefactor     30.804        10.819        .33421E-05   -.48572E-04
  13  Prefactor     .10000E-03    53.006        .46652E-07** at limit **
  14  Prefactor     .10000E-03    17.185       -.49017E-07** at limit **
  15  norm          6.9080        3.6479       -.24249E-06   -.15730E-03
  16  Normalizat    .82976        .18339       -.39086E-05   -.67004E-04
  17  Prefactor     1.0335        .11569       -.21813E-06   -.25901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000113632
  Prefactor  = 20.5969
  Prefactor  = 1.83301
  Prefactor  = 0.0001
  Prefactor  = 11.5497
  Prefactor  = 8.68673
  norm       = 2.6544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.8039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.90798
  Normalizat = 0.829761
  Prefactor  = 1.03346
 **********
 **   18 **HESSE 
 **********

 FCN=   7537.131     FROM HESSE     STATUS=OK           231 CALLS     1875 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11363E-03    8.4741        .72207E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.597        43.189        .88263E-04   -1.4800    
   4  Prefactor     1.8330        2.1123        .13209E-03   -1.5437    
   5  Prefactor     .10000E-03    2.4050        .13116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.550        37.912        .11769E-03   -1.5028    
   7  Prefactor     8.6867        12.329        .13599E-03   -1.5118    
   8  norm          2.6544        3.4095        .17748E-03   -1.5382    
   9  Prefactor     .10000E-03    4.1724        .34157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9296        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1648        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.804        10.837        .72188E-04   -1.4597    
  13  Prefactor     .10000E-03    53.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9080        3.6480        .11659E-03   -1.5182    
  16  Normalizat    .82976        .21686        .30899E-03   -.98974    
  17  Prefactor     1.0335        .13771        .18128E-03   -.91622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04856e-10
Minuit parameter uncertainties:
  1  7.13546e-05
  2  0.0214986
  3  43.2544
  4  2.11239
  5  7.01338e-06
  6  37.9907
  7  12.3327
  8  3.40972
  9  5.15363e-06
  10  5.0056e-06
  11  8.40008e-06
  12  10.8379
  13  4.73256e-05
  14  1.25445e-05
  15  3.64812
  16  0.217091
  17  0.137757
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  2.654e+00  3.410e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.495e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.382e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  2.840e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.033e+00  1.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  8.298e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 4.43e-09 +/- 5.69e-09
Energy Flux (Fixed Index): 1.32e-05 +/- 1.70e-05

TS (Fixed Index): 1.43
Ra Dec: 326.645 -13.735
Photon Flux Upper Limit: 2.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520560/likelihoodResults_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.txt

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) = 7536.83827924
delta logL = 0.292247091452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7536.83672721
delta logL = 0.293799124733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8825       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2864       1.0000          .0000       5.0000    
     3 'Normalizat'    .82623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0321       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7536.837     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8826        3.1311        .13171E-03    .27488E-03
   2  alpha         2.2865        1.0545        .15208E-01    .20742E-04
   3  Normalizat    .82624        .21063        .30955E-03    .54942E-04
   4  Prefactor     1.0321        .13725        .18134E-03    .10716E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88263
  alpha      = 2.28647
  Normalizat = 0.826239
  Prefactor  = 1.03206
 **********
 **   18 **HESSE 
 **********

 FCN=   7536.837     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8826        2.9309        .26342E-04   -1.5434    
   2  alpha         2.2865        .99101        .60833E-03   -.85515E-01
   3  Normalizat    .82624        .21069        .12382E-04   -.99103    
   4  Prefactor     1.0321        .13736        .36269E-04   -.91668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63457e-11
Minuit parameter uncertainties:
  1  2.93114
  2  1.01921
  3  0.2109
  4  0.137404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520560': 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) = 7536.8367272
delta logL = 0.293799128699

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.883e+00  2.931e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.286e+00  1.019e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.382e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  2.840e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.032e+00  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  8.262e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 2.29 +/- 1.02
Photon Flux (Free Index): 1.25e-08 +/- 2.06e-08
Energy Flux (Free Index): 7.39e-06 +/- 8.85e-06

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/520560/cmap_HighResolution_676339201_676598401_4FGL_J2146.5-1344_daily_bin1686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-05', comment='SUCCESS', photon_flux='4.43e-09', energy_flux2='7.39e-06', photon_flux_error='5.69e-09', dlogl='2.94e-01', energy_flux='1.32e-05', photon_flux2='1.25e-08', job_status='DONE', time_completed='2022-06-11 00:55:47.322620', photon_index_error2='1.02', photon_index2='2.29', ts='1.43', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.50e-08', energy_flux_error2='8.85e-06', EG='0.83', time_epoch_completed='1654934147.32', return_code='0', job_id='520560', GAL2='1.03', EG2='0.83', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='2.06e-08', ts2='2.03', photon_index='1.50' WHERE bin_id='1686' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jun 11 00:55:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 520560: <4FGL_J2146.5-1344_daily_bin1686> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jun 11 00:40:32 2022
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:43:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:43:19 2022
Terminated at Sat Jun 11 00:55:48 2022
Results reported at Sat Jun 11 00:55:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1686 326.645 -13.7347 676339201 676598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2146.5-1344 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   520.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            916 sec.

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

