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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1464
RA = 326.645, Dec = -13.7347
tmin = 618796801, tmax = 619056001
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='912180', job_status='RUN', time_executed='2021-09-27 14:01:55.924820', time_epoch_executed='1632776515.92' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912180

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912180/ft1_4FGL_J2146.5-1344_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912180/ft1_4FGL_J2146.5-1344_daily_bin1464.fits outfile=/scratch/kocevski/912180/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1464.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=618796801.0 tmax=619056001.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.75
user 3.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912180/ft1_filtered_4FGL_J2146.5-1344_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/912180/ltcube_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.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/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits
.....................!
real 14.30
user 13.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912180/ft1_filtered_4FGL_J2146.5-1344_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/912180/ltcube_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.fits outfile=/scratch/kocevski/912180/expmap_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.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/912180/ltcube_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.fits
.....................!
real 192.32
user 187.02
sys 4.70

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/912180/ft1_filtered_4FGL_J2146.5-1344_daily_bin1464.fits scfile=/scratch/kocevski/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits outfile=/scratch/kocevski/912180/cmap_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912180/ft1_filtered_4FGL_J2146.5-1344_daily_bin1464.fits scfile=/scratch/kocevski/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits outfile=/scratch/kocevski/912180/cmap_HighResolution_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912180/ft1_filtered_4FGL_J2146.5-1344_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/912180/ft2_4FGL_J2146.5-1344_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912180/Model_4FGL_J2146.5-1344_daily_bin1464.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/912180/ft1_filtered_4FGL_J2146.5-1344_daily_bin1464.fits.....................!
real 51.87
user 50.59
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.410       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3588       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.541       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6735       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19771E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.735       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.311       1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.878       1.0000         .10000E-03   10000.    
    15 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .66261       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2623       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=   5241.716     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1573 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2782       -.39143E-07** at limit **
   2  Prefactor     21.411        16.978       -.23953E-06   -.22085E-04
   3  Prefactor     .10000E-03    31.625       -.97349E-07** at limit **
   4  Prefactor     6.3590        8.7960        .36357E-05   -.41817E-03
   5  Prefactor     .10000E-03    11.203        .23342E-06** at limit **
   6  Prefactor     .10000E-03    15.145       -.55292E-09** at limit **
   7  Prefactor     22.530        18.874       -.27016E-06   -.10172E-03
   8  norm          5.6730        6.4557        .27775E-07    .14913E-04
   9  Prefactor     .10000E-03    5.3189        .18281E-07** at limit **
  10  Prefactor     .10001E-03    14.700        .79359E-06** at limit **
  11  Prefactor     11.736        16.088        .10092E-06   -.19464E-04
  12  Prefactor     17.205        17.862        .26713E-06   -.79658E-04
  13  Prefactor     58.264        83.260       -.68878E-05   -.21926E-03
  14  Prefactor     61.875        63.680       -.16952E-06   -.26931E-04
  15  norm          .10000E-03    1.8797       -.11955E-06** at limit **
  16  Normalizat    .66266        .26774        .10893E-06   -.52391E-04
  17  Prefactor     1.2623        .16166       -.50232E-06   -.39306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.4112
  Prefactor  = 0.0001
  Prefactor  = 6.35898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5305
  norm       = 5.67304
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 11.7358
  Prefactor  = 17.2054
  Prefactor  = 58.2637
  Prefactor  = 61.8754
  norm       = 0.0001
  Normalizat = 0.662659
  Prefactor  = 1.26228
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.716     FROM HESSE     STATUS=OK           223 CALLS     1796 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.411        16.978        .86563E-04   -1.4782    
   3  Prefactor     .10000E-03    31.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3590        9.0303        .79586E-03   -1.5204    
   5  Prefactor     .10000E-03    11.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.530        18.839        .84366E-04   -1.4758    
   8  norm          5.6730        6.4547        .16864E-03   -1.5232    
   9  Prefactor     .10000E-03    5.3937        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    61.431        .52931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.736        16.093        .11694E-03   -1.5023    
  12  Prefactor     17.205        17.786        .96521E-04   -1.4878    
  13  Prefactor     58.264        89.238        .52538E-04   -1.4180    
  14  Prefactor     61.875        63.720        .51010E-04   -1.4133    
  15  norm          .10000E-03    1.8862        .96901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .66266        .29718        .39337E-03   -1.0539    
  17  Prefactor     1.2623        .18101        .18354E-03   -.84436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05984e-09
Minuit parameter uncertainties:
  1  1.00597e-05
  2  16.9814
  3  4.02328e-05
  4  9.03221
  5  1.41999e-06
  6  6.93178e-06
  7  18.8436
  8  6.45552
  9  5.34504e-06
  10  0.00153404
  11  16.0984
  12  17.7917
  13  89.4435
  14  63.7899
  15  6.83727e-06
  16  0.2979
  17  0.181098
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  5.673e+00  6.456e+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.262e+00  1.811e-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:  6.627e-01  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.15
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 9.46e-09 +/- 1.08e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 3.21e-05

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

Saving results to:
/scratch/kocevski/912180/likelihoodResults_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.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) = 5240.38725765
delta logL = 1.32841757371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5239.68952688
delta logL = 2.0261483435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0722       1.0000         .10000E-03   10000.    
     2 'alpha     '    .80866E-06   1.0000          .0000       5.0000    
     3 'Normalizat'    .65208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2713       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=   5239.690     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0726        1.4117        .11710E-01   -.46814E-03
   2  alpha         .28588E-13    .81890        .46382    ** at limit **
   3  Normalizat    .65191        .25592        .89394E-01    .21198E-03
   4  Prefactor     1.2714        .16102        .33131E-01    .28812E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07258
  alpha      = 2.85882e-14
  Normalizat = 0.651912
  Prefactor  = 1.27136
 **********
 **   18 **HESSE 
 **********

 FCN=   5239.690     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0726        1.0967        .71533E-03   -1.5501    
   2  alpha         .28588E-13    .94516        .43724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .65191        .28457        .39603E-03   -1.0582    
   4  Prefactor     1.2714        .17963        .18296E-03   -.84163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18135e-10
Minuit parameter uncertainties:
  1  1.09672
  2  3.39293e-07
  3  0.285216
  4  0.17972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912180': 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) = 5239.68952624
delta logL = 2.02614898392

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.073e+00  1.097e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.859e-14  3.393e-07  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.271e+00  1.797e-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:  6.519e-01  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.22
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.33e-09 +/- 4.42e-09
Energy Flux (Free Index): 1.53e-04 +/- 1.56e-04

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/912180/cmap_HighResolution_618796801_619056001_4FGL_J2146.5-1344_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-04', comment='SUCCESS', photon_flux='9.46e-09', energy_flux2='1.53e-04', photon_flux_error='1.08e-08', dlogl='2.03e+00', energy_flux='2.82e-05', photon_flux2='4.33e-09', job_status='DONE', time_completed='2021-09-27 14:12:23.408093', photon_index_error2='0.00', photon_index2='0.00', ts='2.15', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='4.56e-08', energy_flux_error2='1.56e-04', EG='0.66', time_epoch_completed='1632777143.41', return_code='0', job_id='912180', GAL2='1.27', EG2='0.65', return_code2='0', energy_flux_error='3.21e-05', photon_flux_error2='4.42e-09', ts2='6.22', photon_index='1.50' WHERE bin_id='1464' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:12:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 912180: <4FGL_J2146.5-1344_daily_bin1464> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1464> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 14:00:58 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:01:32 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:32 2021
Terminated at Mon Sep 27 14:12:24 2021
Results reported at Mon Sep 27 14:12:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1464 326.645 -13.7347 618796801 619056001 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 :                                   507.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            686 sec.

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

