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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1491
RA = 326.645, Dec = -13.7347
tmin = 625795201, tmax = 626054401
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='912224', job_status='RUN', time_executed='2021-09-27 14:02:19.773787', time_epoch_executed='1632776539.77' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912224/ft1_4FGL_J2146.5-1344_daily_bin1491.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912224/ft1_4FGL_J2146.5-1344_daily_bin1491.fits outfile=/scratch/kocevski/912224/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1491.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=625795201.0 tmax=626054401.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912224/ft1_filtered_4FGL_J2146.5-1344_daily_bin1491.fits" evtable="EVENTS" scfile=/scratch/kocevski/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits sctable="SC_DATA" outfile=/scratch/kocevski/912224/ltcube_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.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/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits
.....................!
real 12.73
user 12.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912224/ft1_filtered_4FGL_J2146.5-1344_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits sctable="SC_DATA" expcube=/scratch/kocevski/912224/ltcube_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.fits outfile=/scratch/kocevski/912224/expmap_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.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/912224/ltcube_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.fits
.....................!
real 190.97
user 185.23
sys 5.21

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/912224/ft1_filtered_4FGL_J2146.5-1344_daily_bin1491.fits scfile=/scratch/kocevski/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits outfile=/scratch/kocevski/912224/cmap_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912224/ft1_filtered_4FGL_J2146.5-1344_daily_bin1491.fits scfile=/scratch/kocevski/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits outfile=/scratch/kocevski/912224/cmap_HighResolution_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912224/ft1_filtered_4FGL_J2146.5-1344_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/912224/ft2_4FGL_J2146.5-1344_daily_bin1491.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912224/Model_4FGL_J2146.5-1344_daily_bin1491.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/912224/ft1_filtered_4FGL_J2146.5-1344_daily_bin1491.fits.....................!
real 69.10
user 67.60
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.248       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11400E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0139       1.0000         .10000E-03   10000.    
     8 'norm      '    14.803       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .40423       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1152       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=   7972.777     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1384 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.243        16.234        .58278E-06    .13578E-03
   2  Prefactor     .10000E-03    5.9948       -.51973E-06** at limit **
   3  Prefactor     .10000E-03    20.741       -.25504E-05** at limit **
   4  Prefactor     .10000E-03    1.1592        .21029E-07** at limit **
   5  Prefactor     .10000E-03    1.9323       -.13168E-07** at limit **
   6  Prefactor     .10000E-03    12.717        .27731E-06** at limit **
   7  Prefactor     3.0115        9.6357       -.33943E-06   -.37442E-04
   8  norm          14.801        6.7199       -.22698E-05   -.25854E-03
   9  Prefactor     4.5957        1.9955        .27949E-06   -.28266E-02
  10  Prefactor     12.902        10.794       -.49696E-08   -.29986E-05
  11  Prefactor     .10000E-03    1.9948       -.12739E-07** at limit **
  12  Prefactor     28.904        10.931        .52634E-07    .37777E-05
  13  Prefactor     .10000E-03    64.416       -.20658E-06** at limit **
  14  Prefactor     .10000E-03    24.466        .32938E-05** at limit **
  15  norm          .10000E-03    3.8845       -.62840E-08** at limit **
  16  Normalizat    .40429        .17653       -.46518E-07    .50446E-04
  17  Prefactor     1.1151        .11198        .23957E-07    .12998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2431
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01147
  norm       = 14.801
  Prefactor  = 4.59574
  Prefactor  = 12.9022
  Prefactor  = 0.0001
  Prefactor  = 28.904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.40429
  Prefactor  = 1.11514
 **********
 **   18 **HESSE 
 **********

 FCN=   7972.777     FROM HESSE     STATUS=OK           225 CALLS     1609 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.243        15.449        .91291E-04   -1.4830    
   2  Prefactor     .10000E-03    28.017        .39437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1624        .93873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9651        .12120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0115        9.5860        .23378E-03   -1.5361    
   8  norm          14.801        6.7197        .10410E-03   -1.4938    
   9  Prefactor     4.5957        5.0573        .93843E-03   -1.5279    
  10  Prefactor     12.902        10.803        .11153E-03   -1.4989    
  11  Prefactor     .10000E-03    2.0010        .12315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.904        10.934        .74524E-04   -1.4632    
  13  Prefactor     .10000E-03    64.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0410        .34331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .40429        .19228        .38143E-03   -1.1708    
  17  Prefactor     1.1151        .12326        .15755E-03   -.88984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51843e-09
Minuit parameter uncertainties:
  1  15.4523
  2  0.000532087
  3  4.24621e-05
  4  1.1021e-07
  5  9.7706e-08
  6  3.37963e-06
  7  9.59085
  8  6.72
  9  5.05773
  10  10.8051
  11  1.70886e-07
  12  10.9344
  13  1.42047e-05
  14  5.48542e-05
  15  1.40784e-06
  16  0.192598
  17  0.123289
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.480e+01  6.720e+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.115e+00  1.233e-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:  4.043e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.84
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 2.47e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 7.37e-05 +/- 3.34e-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) = 7972.51651444
delta logL = 0.260680026448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7972.51282168
delta logL = 0.264372783781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.305       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2246       1.0000          .0000       5.0000    
     3 'Normalizat'    .40414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1179       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.

 FCN=   7972.513     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.308        7.2674        .26475E-02   -.12293E-02
   2  alpha         1.2248        .35864        .32782       -.51054E-05
   3  Normalizat    .40413        .16544        .86148E-01    .63345E-04
   4  Prefactor     1.1179        .11064        .36945E-01   -.12244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3085
  alpha      = 1.2248
  Normalizat = 0.404128
  Prefactor  = 1.11787
 **********
 **   18 **HESSE 
 **********

 FCN=   7972.513     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.308        6.9923        .52949E-03   -1.4951    
   2  alpha         1.2248        .37146        .13425E-01   -.53528    
   3  Normalizat    .40413        .18088        .38159E-03   -1.1709    
   4  Prefactor     1.1179        .12152        .15744E-03   -.88898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26659e-11
Minuit parameter uncertainties:
  1  6.99274
  2  0.373336
  3  0.18114
  4  0.121549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912224': 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) = 7972.51282149
delta logL = 0.264372981824

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.431e+01  6.993e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.225e+00  3.733e-01  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.118e+00  1.215e-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:  4.041e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.36
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 1.22 +/- 0.37
Photon Flux (Free Index): 1.91e-08 +/- 1.10e-08
Energy Flux (Free Index): 1.07e-04 +/- 7.41e-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/912224/cmap_HighResolution_625795201_626054401_4FGL_J2146.5-1344_daily_bin1491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.47e-08', energy_flux2='1.07e-04', photon_flux_error='1.12e-08', dlogl='2.64e-01', energy_flux='7.37e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-09-27 14:14:02.544273', photon_index_error2='0.37', photon_index2='1.22', ts='37.84', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='7.41e-05', EG='0.40', time_epoch_completed='1632777242.54', return_code='0', job_id='912224', GAL2='1.12', EG2='0.40', return_code2='0', energy_flux_error='3.34e-05', photon_flux_error2='1.10e-08', ts2='38.36', photon_index='1.50' WHERE bin_id='1491' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:14:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 912224: <4FGL_J2146.5-1344_daily_bin1491> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1491> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 14:01:01 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:01:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 14:01:42 2021
Terminated at Mon Sep 27 14:14:03 2021
Results reported at Mon Sep 27 14:14:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1491 326.645 -13.7347 625795201 626054401 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 :                                   540.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            782 sec.

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

