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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1487
RA = 326.645, Dec = -13.7347
tmin = 624758401, tmax = 625017601
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='912217', job_status='RUN', time_executed='2021-09-27 14:03:24.122333', time_epoch_executed='1632776604.12' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912217/ft1_4FGL_J2146.5-1344_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912217/ft2_4FGL_J2146.5-1344_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912217/ft1_4FGL_J2146.5-1344_daily_bin1487.fits outfile=/scratch/kocevski/912217/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1487.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=624758401.0 tmax=625017601.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.53
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912217/ft1_filtered_4FGL_J2146.5-1344_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/912217/ft2_4FGL_J2146.5-1344_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/912217/ltcube_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.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/912217/ft2_4FGL_J2146.5-1344_daily_bin1487.fits
.....................!
real 15.50
user 15.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912217/ft1_filtered_4FGL_J2146.5-1344_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/912217/ft2_4FGL_J2146.5-1344_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/912217/ltcube_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.fits outfile=/scratch/kocevski/912217/expmap_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.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/912217/ltcube_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.fits
.....................!
real 192.75
user 187.07
sys 4.32

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/912217/ft1_filtered_4FGL_J2146.5-1344_daily_bin1487.fits scfile=/scratch/kocevski/912217/ft2_4FGL_J2146.5-1344_daily_bin1487.fits outfile=/scratch/kocevski/912217/cmap_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912217/ft1_filtered_4FGL_J2146.5-1344_daily_bin1487.fits scfile=/scratch/kocevski/912217/ft2_4FGL_J2146.5-1344_daily_bin1487.fits outfile=/scratch/kocevski/912217/cmap_HighResolution_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.292       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0938       1.0000         .10000E-03   10000.    
     8 'norm      '    .99662E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.453       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92351       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=   5779.831     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     1613 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2858       -.53436E-07** at limit **
   2  Prefactor     22.283        17.295        .60541E-05   -.28602E-04
   3  Prefactor     .10000E-03    22.560        .26489E-04** at limit **
   4  Prefactor     .10000E-03    2.7669        .52161E-07** at limit **
   5  Prefactor     1.3385        4.4172       -.10242E-05   -.80096E-03
   6  Prefactor     .10000E-03    10.995       -.44241E-06** at limit **
   7  Prefactor     9.0835        15.995       -.11105E-04   -.18871E-03
   8  norm          .10220E-03    6.3915        .67816E-06** at limit **
   9  Prefactor     .10000E-03    5.6510        .14825E-06** at limit **
  10  Prefactor     .10000E-03    17.306        .57702E-05** at limit **
  11  Prefactor     10.449        10.145        .67139E-06   -.46202E-04
  12  Prefactor     .31202        9.3883        .26314E-05   -.68097E-03
  13  Prefactor     .10000E-03    31.489       -.56488E-05** at limit **
  14  Prefactor     .10000E-03    20.548       -.26200E-04** at limit **
  15  norm          .10000E-03    2.7013       -.74814E-08** at limit **
  16  Normalizat    1.0418        .21886        .10894E-05   -.45973E-03
  17  Prefactor     .92359        .12977       -.77822E-06   -.37688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.2832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33854
  Prefactor  = 0.0001
  Prefactor  = 9.08354
  norm       = 0.000102202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4492
  Prefactor  = 0.312018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04181
  Prefactor  = 0.923589
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.831     FROM HESSE     STATUS=OK           227 CALLS     1840 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.283        17.304        .84836E-04   -1.4764    
   3  Prefactor     .10000E-03    22.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7950        .12348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3385        4.3928        .28279E-03   -1.5477    
   6  Prefactor     .10000E-03    10.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0835        16.176        .13291E-03   -1.5105    
   8  norm          .10220E-03    11.744        .61985E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7559        .17633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.449        10.161        .12393E-03   -1.5061    
  12  Prefactor     .31202        182.23        .42160E-02   -1.5596    
  13  Prefactor     .10000E-03    31.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7293        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0418        .27647        .28859E-03   -.91643    
  17  Prefactor     .92359        .16144        .18765E-03   -.95322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03282e-08
Minuit parameter uncertainties:
  1  5.7831e-05
  2  17.3077
  3  8.34099e-06
  4  3.97944e-06
  5  4.39387
  6  1.52683e-06
  7  16.184
  8  0.0101721
  9  3.52586e-05
  10  0.000143411
  11  10.1628
  12  15.1248
  13  1.05085e-05
  14  1.57404e-06
  15  3.05351e-06
  16  0.276853
  17  0.161519
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.022e-04  1.017e-02  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:  9.236e-01  1.615e-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.042e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.645 -13.735
Photon Flux Upper Limit: 4.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912217/likelihoodResults_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.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) = 5779.83116794
delta logL = -2.0799894628e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5778.87495823
delta logL = 0.956188907725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6779       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9494       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91670       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=   5778.875     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      319 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6812        30.910        .81317E-02    .10958E-02
   2  alpha         2.9485        3.8272        .18635        .13343E-03
   3  Normalizat    1.0138        .67420E-01    .65939E-01    .44571E-04
   4  Prefactor     .91668        .38602E-01    .45217E-01    .70165E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68117
  alpha      = 2.94846
  Normalizat = 1.01379
  Prefactor  = 0.916684
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.875     FROM HESSE     STATUS=OK            33 CALLS      352 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6812        18.329        .81557E-04   -1.5449    
   2  alpha         2.9485        3.7760        .92277E-02    .18036    
   3  Normalizat    1.0138        .28718        .29167E-03   -.92570    
   4  Prefactor     .91668        .17210        .18795E-03   -.95561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77269e-10
Minuit parameter uncertainties:
  1  11.1062
  2  2.90269
  3  0.287621
  4  0.172198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912217': 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) = 5778.87495776
delta logL = 0.95618937809

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.681e+00  1.111e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.948e+00  2.903e+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:  9.167e-01  1.722e-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.014e+00  2.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 2.95 +/- 2.90
Photon Flux (Free Index): 5.64e-08 +/- 7.75e-08
Energy Flux (Free Index): 1.59e-05 +/- 2.28e-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/912217/cmap_HighResolution_624758401_625017601_4FGL_J2146.5-1344_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-04', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='9.56e-01', photon_flux2='5.64e-08', job_status='DONE', time_completed='2021-09-27 14:12:57.811309', photon_index_error2='2.90', photon_index2='2.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='2.28e-05', EG='1.04', time_epoch_completed='1632777177.81', return_code='0', job_id='912217', GAL2='0.92', EG2='1.01', return_code2='0', photon_flux_error2='7.75e-08', ts2='1.92', photon_index='1.50' WHERE bin_id='1487' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:12:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 912217: <4FGL_J2146.5-1344_daily_bin1487> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1487> 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) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:01:41 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:41 2021
Terminated at Mon Sep 27 14:12:58 2021
Results reported at Mon Sep 27 14:12:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1487 326.645 -13.7347 624758401 625017601 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 :                                   538.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            717 sec.

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

