/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 226 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_J2146.5-1344_daily_bin1772
RA = 326.645, Dec = -13.7347
tmin = 698630401, tmax = 698889601
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='652329', job_status='RUN', time_executed='2023-02-24 02:59:10.632310', time_epoch_executed='1677236350.63' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652329/ft1_4FGL_J2146.5-1344_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652329/ft1_4FGL_J2146.5-1344_daily_bin1772.fits outfile=/scratch/kocevski/652329/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1772.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=698630401.0 tmax=698889601.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.00
user 2.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.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/652329/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.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.48
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/652329/ltcube_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.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/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits
.....................!
real 12.09
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/652329/ltcube_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.fits outfile=/scratch/kocevski/652329/expmap_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.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/652329/ltcube_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.fits
.....................!
real 189.99
user 184.87
sys 4.81

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/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits scfile=/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits outfile=/scratch/kocevski/652329/cmap_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits scfile=/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits outfile=/scratch/kocevski/652329/cmap_HighResolution_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652329/Model_4FGL_J2146.5-1344_daily_bin1772.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/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits..........................!
real 19.57
user 18.32
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits', '/scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits', expMap='/scratch/kocevski/652329/expmap_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.fits', expCube='/scratch/kocevski/652329/ltcube_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652329/Model_4FGL_J2146.5-1344_daily_bin1772.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  0.000e+00  1.000e+06 ( 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 -5.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/652329/ft1_filtered_4FGL_J2146.5-1344_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/652329/ft2_4FGL_J2146.5-1344_daily_bin1772.fits
Exposure map: /scratch/kocevski/652329/expmap_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.fits
Exposure cube: /scratch/kocevski/652329/ltcube_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652329/Model_4FGL_J2146.5-1344_daily_bin1772.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) = 675.076658206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77971E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.524       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55511E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.7585       1.0000          .0000       .10000E+07
     5 'Prefactor '    .33806E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    200.24       1.0000          .0000       .10000E+07
     7 'norm      '    .96723E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11576E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .80900E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10446E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .94113E-04   1.0000          .0000       .10000E+07
    13 'norm      '    25.979       1.0000          .0000       .10000E+07
    14 'Normalizat'    .10020E-01   1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.2178       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=   674.9533     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1495 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10880E-07    86.572        .14900E-06** at limit **
   2  Prefactor     22.525        69.416        .22071E-06   -.55975E-03
   3  Prefactor     .55511E-10    71.563       -.94118E-08** at limit **
   4  Prefactor     6.7552        32.800        .16615E-06   -.90383E-03
   5  Prefactor      .0000        19.853       -.42932E-08** at limit **
   6  Prefactor     199.37        402.56        .23735E-06   -.35982E-04
   7  norm          .55511E-10    59.594       -.10559E-07** at limit **
   8  Prefactor     .66613E-09    84.367       -.58826E-07** at limit **
   9  Prefactor     .55511E-10    1237.5       -.39286E-07** at limit **
  10  Prefactor     .55511E-10    574.32        .36142E-08** at limit **
  11  Prefactor     .10000E+07    .17277E+06    .18726E-06** at limit **
  12  Prefactor     .40262E-06    58648.       -.12664E-05** at limit **
  13  norm          26.007        83.715        .18034E-06   -.11975E-04
  14  Normalizat    .10000E-01    .70646       -.42272E-04** at limit **
  15  Prefactor     1.2182        .21702        .56277E-05    .27672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08802e-08
  Prefactor  = 22.5252
  Prefactor  = 5.55112e-11
  Prefactor  = 6.75516
  Prefactor  = 0
  Prefactor  = 199.365
  norm       = 5.55112e-11
  Prefactor  = 6.66134e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 1e+06
  Prefactor  = 4.02622e-07
  norm       = 26.0072
  Normalizat = 0.01
  Prefactor  = 1.21823
 **********
 **   18 **HESSE 
 **********

 FCN=   674.9533     FROM HESSE     STATUS=OK           174 CALLS     1669 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10880E-07    86.087        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.525        69.535        .84305E-05   -1.5613    
   3  Prefactor     .55511E-10    71.576        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7552        32.786        .15429E-04   -1.5656    
   5  Prefactor      .0000        19.854        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     199.37        403.02        .14135E-04   -1.5426    
   7  norm          .55511E-10    59.600        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .66613E-09    84.359        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    1237.7        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    574.36        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E+07    .17277E+06    .33974E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .40262E-06    58757.        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.007        83.765        .78494E-05   -1.5606    
  14  Normalizat    .10000E-01    6.2738        .11354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2182        .22626        .15150E-03   -.85772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70574e-09
Minuit parameter uncertainties:
  1  0.00193612
  2  69.537
  3  0.000108382
  4  29.7642
  5  2.74053e-05
  6  403.076
  7  0.000100321
  8  0.000477634
  9  0.000472531
  10  0.000328743
  11  0.0545337
  12  0.310722
  13  83.7687
  14  0.000166925
  15  0.226445
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  5.551e-11  1.003e-04  0.000e+00  1.000e+06 ( 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 -5.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.218e+00  2.264e-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:  1.000e-02  1.669e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.645 -13.735
Photon Flux Upper Limit: 5.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652329/likelihoodResults_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.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): 102
logL (Free Index) = 674.953692288
delta logL = -0.000356882075152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 674.953339426
delta logL = -4.02058844884e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   674.9533     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      217 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38858E-09    46.430        .85043E-06** at limit **
   2  alpha         2.0252        2.9061       -.18813E-03    .69168E-11
   3  Normalizat    .10000E-01    6.2774        .14587E-03** at limit **
   4  Prefactor     1.2182        .19367        .56565E-06   -.17596E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.88578e-10
  alpha      = 2.0252
  Normalizat = 0.01
  Prefactor  = 1.21822
 **********
 **   18 **HESSE 
 **********

 FCN=   674.9533     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38858E-09    2.2705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0252        3.9490        .41175       -.19108    
   3  Normalizat    .10000E-01    .49106E-04    .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2182        .19349E-02    .34215E-01   -.85772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53264e-13
Minuit parameter uncertainties:
  1  5.97034e-05
  2  95937
  3  1.38621e-08
  4  0.00193485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652329': 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): 102
logL (Free Index) = 674.953335405
delta logL = 5.17616172147e-10

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  3.886e-10  5.970e-05  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.025e+00  9.594e+04  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.382e-01  0.000e+00 -5.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.218e+00  1.935e-03  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:  1.000e-02  1.386e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.645 -13.735

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/652329/cmap_HighResolution_698630401_698889601_4FGL_J2146.5-1344_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-03', job_status='DONE', photon_flux_upper_limit='5.63e-07', time_completed='2023-02-24 03:04:41.314317', job_id='652329', GAL2='1.22', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677236681.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.18e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1772' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 03:04:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 652329: <4FGL_J2146.5-1344_daily_bin1772> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1772> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb 24 02:55:15 2023
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 02:55:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 02:55:16 2023
Terminated at Fri Feb 24 03:04:42 2023
Results reported at Fri Feb 24 03:04:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1772 326.645 -13.7347 698630401 698889601 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 :                                   333.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             226.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

