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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1714
RA = 326.645, Dec = -13.7347
tmin = 683596801, tmax = 683856001
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='236081', job_status='RUN', time_executed='2022-09-16 23:30:10.188144', time_epoch_executed='1663396210.19' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236081/ft1_4FGL_J2146.5-1344_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236081/ft1_4FGL_J2146.5-1344_daily_bin1714.fits outfile=/scratch/kocevski/236081/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1714.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=683596801.0 tmax=683856001.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.51
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.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/236081/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.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.50
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 444

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/236081/ltcube_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.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/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits
.....................!
real 14.74
user 14.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/236081/ltcube_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.fits outfile=/scratch/kocevski/236081/expmap_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.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/236081/ltcube_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.fits
.....................!
real 191.88
user 186.17
sys 5.34

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/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits scfile=/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits outfile=/scratch/kocevski/236081/cmap_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits scfile=/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits outfile=/scratch/kocevski/236081/cmap_HighResolution_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236081/Model_4FGL_J2146.5-1344_daily_bin1714.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/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits.....................!
real 52.11
user 50.79
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits', '/scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits', expMap='/scratch/kocevski/236081/expmap_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.fits', expCube='/scratch/kocevski/236081/ltcube_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236081/Model_4FGL_J2146.5-1344_daily_bin1714.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/236081/ft1_filtered_4FGL_J2146.5-1344_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/236081/ft2_4FGL_J2146.5-1344_daily_bin1714.fits
Exposure map: /scratch/kocevski/236081/expmap_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.fits
Exposure cube: /scratch/kocevski/236081/ltcube_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236081/Model_4FGL_J2146.5-1344_daily_bin1714.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) = 5098.77738565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0127       1.0000          .0000       .10000E+07
     2 'Prefactor '    .41505E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20112E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .23131E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8547       1.0000          .0000       .10000E+07
     6 'Prefactor '    .28472E-04   1.0000          .0000       .10000E+07
     7 'norm      '    3.2782       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.966       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47962E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.3596       1.0000          .0000       .10000E+07
    11 'Prefactor '    .53116E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .42130E-02   1.0000          .0000       .10000E+07
    13 'norm      '    7.1048       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0580       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .88151       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=   5098.733     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      813 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0558        8.0669       -.27113E-06   -.48635E-03
   2  Prefactor     .55511E-09    3.6686        .12598E-07** at limit **
   3  Prefactor      .0000        49.200        .57091E-05** at limit **
   4  Prefactor     .16653E-09    3.5287       -.52665E-07** at limit **
   5  Prefactor     1.8957        6.8336        .31309E-07   -.90895E-03
   6  Prefactor     .16653E-09    5.6213       -.73499E-07** at limit **
   7  norm          3.2803        4.3153        .49846E-07   -.51792E-02
   8  Prefactor     15.837        1.8230        .60873E-08   -.11293E-02
   9  Prefactor     .55511E-09    7.2186        .65144E-07** at limit **
  10  Prefactor     3.2234        18.991       -.16768E-05   -.19192E-03
  11  Prefactor     .24980E-08    29.598        .93540E-06** at limit **
  12  Prefactor     .16653E-09    30.442       -.95865E-06** at limit **
  13  norm          7.0342        7.0381       -.28964E-07   -.13214E-02
  14  Normalizat    1.0597        .27815        .17964E-05    .52679E-03
  15  Prefactor     .88107        .16497       -.10902E-06    .52913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05581
  Prefactor  = 5.55112e-10
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 1.89568
  Prefactor  = 1.66533e-10
  norm       = 3.28029
  Prefactor  = 15.8373
  Prefactor  = 5.55112e-10
  Prefactor  = 3.22336
  Prefactor  = 2.498e-09
  Prefactor  = 1.66533e-10
  norm       = 7.03422
  Normalizat = 1.05965
  Prefactor  = 0.881066
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.733     FROM HESSE     STATUS=OK           210 CALLS     1023 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0558        8.0906        .58448E-03   -1.5673    
   2  Prefactor     .55511E-09    3.6777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        48.407        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16653E-09    3.5201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8957        6.8631        .76509E-03   -1.5680    
   6  Prefactor     .16653E-09    5.6221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2803        4.3196        .55901E-03   -1.5672    
   8  Prefactor     15.837        9.3638        .25039E-03   -1.5628    
   9  Prefactor     .55511E-09    7.2194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2234        19.014        .55187E-03   -1.5672    
  11  Prefactor     .24980E-08    29.480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    30.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0342        7.0391        .37611E-03   -1.5655    
  14  Normalizat    1.0597        .23301        .65988E-01   -.91058    
  15  Prefactor     .88107        .13578        .44769E-01   -.96806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59565e-07
Minuit parameter uncertainties:
  1  8.0906
  2  8.95332e-05
  3  3.57647e-05
  4  5.17766e-05
  5  6.86311
  6  6.22955e-05
  7  4.31958
  8  9.36382
  9  0.000124973
  10  15.6577
  11  0.000540976
  12  0.000142567
  13  7.03911
  14  0.233231
  15  0.13583
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  3.280e+00  4.320e+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

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.811e-01  1.358e-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.060e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 5.47e-09 +/- 7.21e-09
Energy Flux (Fixed Index): 1.63e-05 +/- 2.15e-05

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

Saving results to:
/scratch/kocevski/236081/likelihoodResults_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.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) = 5098.68405405
delta logL = 0.048957999953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5098.6794882
delta logL = 0.0535238551956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8490       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0174       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88130       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=   5098.679     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      228 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8496        4.9349        .14872E-04    .63484E-02
   2  alpha         2.0168        1.8960        .23313E-01    .44409E-04
   3  Normalizat    1.0555        .27127        .29238E-03    .32183E-03
   4  Prefactor     .88130        .16314        .19070E-03    .57500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84962
  alpha      = 2.01681
  Normalizat = 1.05551
  Prefactor  = 0.881296
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.679     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8496        4.6406        .29744E-05   -1.5674    
   2  alpha         2.0168        1.8104        .93252E-03   -.19450    
   3  Normalizat    1.0555        .27098        .58476E-04   -.91193    
   4  Prefactor     .88130        .16325        .38139E-04   -.96798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46164e-10
Minuit parameter uncertainties:
  1  4.64065
  2  2.03637
  3  0.271331
  4  0.16334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236081': 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) = 5098.67948814
delta logL = 0.053523916341

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  2.850e+00  4.641e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.017e+00  2.036e+00  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:  8.813e-01  1.633e-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.056e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 2.02 +/- 2.04
Photon Flux (Free Index): 1.08e-08 +/- 3.44e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.65e-05

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/236081/cmap_HighResolution_683596801_683856001_4FGL_J2146.5-1344_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-05', comment='SUCCESS', photon_flux='5.47e-09', energy_flux2='1.02e-05', photon_flux_error='7.21e-09', dlogl='5.35e-02', energy_flux='1.63e-05', photon_flux2='1.08e-08', job_status='DONE', time_completed='2022-09-16 23:37:46.651005', photon_index_error2='2.04', photon_index2='2.02', ts='1.33', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.22e-08', energy_flux_error2='1.65e-05', EG='1.06', time_epoch_completed='1663396666.65', return_code='0', job_id='236081', GAL2='0.88', EG2='1.06', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='3.44e-08', ts2='1.44', photon_index='1.50' WHERE bin_id='1714' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:37:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 236081: <4FGL_J2146.5-1344_daily_bin1714> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1714> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 23:25:29 2022
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:26:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:26:42 2022
Terminated at Fri Sep 16 23:37:47 2022
Results reported at Fri Sep 16 23:37:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1714 326.645 -13.7347 683596801 683856001 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 :                                   459.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            738 sec.

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

