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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1481
RA = 326.645, Dec = -13.7347
tmin = 623203201, tmax = 623462401
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='912208', job_status='RUN', time_executed='2021-09-27 14:02:31.962894', time_epoch_executed='1632776551.96' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912208/ft1_4FGL_J2146.5-1344_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912208/ft1_4FGL_J2146.5-1344_daily_bin1481.fits outfile=/scratch/kocevski/912208/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1481.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.92
user 2.66
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.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/912208/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/912208/ft1_filtered_4FGL_J2146.5-1344_daily_bin1481.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/912208/ft1_filtered_4FGL_J2146.5-1344_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/912208/ltcube_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.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/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.fits
.....................!
real 14.60
user 14.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912208/ft1_filtered_4FGL_J2146.5-1344_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/912208/ltcube_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.fits outfile=/scratch/kocevski/912208/expmap_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.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/912208/ltcube_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.fits
.....................!
real 190.37
user 185.14
sys 4.73

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/912208/ft1_filtered_4FGL_J2146.5-1344_daily_bin1481.fits scfile=/scratch/kocevski/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.fits outfile=/scratch/kocevski/912208/cmap_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912208/ft1_filtered_4FGL_J2146.5-1344_daily_bin1481.fits scfile=/scratch/kocevski/912208/ft2_4FGL_J2146.5-1344_daily_bin1481.fits outfile=/scratch/kocevski/912208/cmap_HighResolution_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1831       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.5131       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.276       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.040       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .43975E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1033       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87951       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=   4609.105     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1593 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2557       -.24512E-06** at limit **
   2  Prefactor     8.1854        10.800       -.43276E-06   -.16150E-04
   3  Prefactor     .10000E-03    28.905       -.21085E-04** at limit **
   4  Prefactor     .85553        1.8835        .11570E-05   -.25444E-02
   5  Prefactor     4.3569        5.4867       -.40036E-06   -.26357E-04
   6  Prefactor     .10000E-03    78.261        .47278E-04** at limit **
   7  Prefactor     .10000E-03    24.645        .43222E-05** at limit **
   8  norm          9.5136        7.3217        .13539E-05   -.22126E-04
   9  Prefactor     15.278        12.137       -.41328E-07   -.22340E-03
  10  Prefactor     .10000E-03    32.813        .23749E-04** at limit **
  11  Prefactor     6.6570        10.751       -.80509E-06   -.14579E-04
  12  Prefactor     17.029        17.300       -.46115E-06   -.25305E-04
  13  Prefactor     .10000E-03    61.288       -.42803E-04** at limit **
  14  Prefactor     .10000E-03    369.62       -.85354E-04** at limit **
  15  norm          .10000E-03    7.6941        .30649E-06** at limit **
  16  Normalizat    1.1035        .25128        .45044E-06   -.84492E-04
  17  Prefactor     .87930        .14375       -.13977E-06   -.10127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.18541
  Prefactor  = 0.0001
  Prefactor  = 0.855528
  Prefactor  = 4.35685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.51361
  Prefactor  = 15.2781
  Prefactor  = 0.0001
  Prefactor  = 6.65698
  Prefactor  = 17.0293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10346
  Prefactor  = 0.879304
 **********
 **   18 **HESSE 
 **********

 FCN=   4609.105     FROM HESSE     STATUS=OK           221 CALLS     1814 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2586        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1854        10.798        .14015E-03   -1.5136    
   3  Prefactor     .10000E-03    28.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85553        11.555        .21596E-02   -1.5523    
   5  Prefactor     4.3569        5.4848        .17260E-03   -1.5290    
   6  Prefactor     .10000E-03    78.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.5136        7.3215        .12993E-03   -1.5091    
   9  Prefactor     15.278        12.204        .10247E-03   -1.4926    
  10  Prefactor     .10000E-03    33.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6570        10.771        .15554E-03   -1.5192    
  12  Prefactor     17.029        17.339        .97024E-04   -1.4882    
  13  Prefactor     .10000E-03    61.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    372.48        .19374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1035        .30535        .29512E-03   -.89641    
  17  Prefactor     .87930        .17537        .19288E-03   -.96868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88527e-08
Minuit parameter uncertainties:
  1  6.91083e-07
  2  10.8003
  3  0.000118985
  4  6.28942
  5  5.48544
  6  7.87747e-05
  7  5.72838e-05
  8  7.32214
  9  12.2056
  10  2.99779e-05
  11  10.7742
  12  17.3442
  13  0.000326403
  14  9.0011e-05
  15  2.76756e-06
  16  0.305838
  17  0.175482
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  9.514e+00  7.322e+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:  8.793e-01  1.755e-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.103e+00  3.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.91
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.22e-08
Energy Flux (Fixed Index): 4.73e-05 +/- 3.64e-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) = 4608.83645719
delta logL = 0.26808584841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4608.83228321
delta logL = 0.272259829096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8420       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0412       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88154       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=   4608.832     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8443        6.8706        .33699E-02   -.60789E-04
   2  alpha         1.0411        .53135        .40120       -.12238E-04
   3  Normalizat    1.1025        .24116        .66728E-01    .99019E-05
   4  Prefactor     .88189        .14324        .44769E-01    .47092E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.84432
  alpha      = 1.04114
  Normalizat = 1.10249
  Prefactor  = 0.881894
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.832     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8443        7.3096        .13480E-03   -1.5113    
   2  alpha         1.0411        .58112        .17201E-01   -.62309    
   3  Normalizat    1.1025        .29077        .29521E-03   -.89672    
   4  Prefactor     .88189        .17292        .19265E-03   -.96777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02745e-10
Minuit parameter uncertainties:
  1  7.31036
  2  0.589359
  3  0.291189
  4  0.173029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912208': 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) = 4608.8322805
delta logL = 0.272262532448

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  8.844e+00  7.310e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.041e+00  5.894e-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:  8.819e-01  1.730e-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.102e+00  2.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.45
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 1.04 +/- 0.59
Photon Flux (Free Index): 1.11e-08 +/- 9.41e-09
Energy Flux (Free Index): 9.32e-05 +/- 1.07e-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/912208/cmap_HighResolution_623203201_623462401_4FGL_J2146.5-1344_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='9.32e-05', photon_flux_error='1.22e-08', dlogl='2.72e-01', energy_flux='4.73e-05', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-27 14:14:36.911525', photon_index_error2='0.59', photon_index2='1.04', ts='10.91', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='1.10', time_epoch_completed='1632777276.91', return_code='0', job_id='912208', GAL2='0.88', EG2='1.10', return_code2='0', energy_flux_error='3.64e-05', photon_flux_error2='9.41e-09', ts2='11.45', photon_index='1.50' WHERE bin_id='1481' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 912208: <4FGL_J2146.5-1344_daily_bin1481> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1481 326.645 -13.7347 623203201 623462401 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 :                                   451.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            817 sec.

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

