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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1335
RA = 326.645, Dec = -13.7347
tmin = 585360001, tmax = 585619201
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='911969', job_status='RUN', time_executed='2021-09-27 14:01:41.278694', time_epoch_executed='1632776501.28' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911969/ft1_4FGL_J2146.5-1344_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911969/ft1_4FGL_J2146.5-1344_daily_bin1335.fits outfile=/scratch/kocevski/911969/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1335.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=585360001.0 tmax=585619201.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.87
user 2.65
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911969/ft1_filtered_4FGL_J2146.5-1344_daily_bin1335.fits" evtable="EVENTS" scfile=/scratch/kocevski/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits sctable="SC_DATA" outfile=/scratch/kocevski/911969/ltcube_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.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/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits
.....................!
real 15.50
user 15.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911969/ft1_filtered_4FGL_J2146.5-1344_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/911969/ltcube_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.fits outfile=/scratch/kocevski/911969/expmap_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.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/911969/ltcube_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.fits
.....................!
real 191.68
user 185.89
sys 5.38

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/911969/ft1_filtered_4FGL_J2146.5-1344_daily_bin1335.fits scfile=/scratch/kocevski/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits outfile=/scratch/kocevski/911969/cmap_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911969/ft1_filtered_4FGL_J2146.5-1344_daily_bin1335.fits scfile=/scratch/kocevski/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits outfile=/scratch/kocevski/911969/cmap_HighResolution_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911969/ft1_filtered_4FGL_J2146.5-1344_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/911969/ft2_4FGL_J2146.5-1344_daily_bin1335.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911969/Model_4FGL_J2146.5-1344_daily_bin1335.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/911969/ft1_filtered_4FGL_J2146.5-1344_daily_bin1335.fits........................!
real 22.08
user 20.81
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    147.14       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    29.222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    179.61       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.728       1.0000         .10000E-03   10000.    
    15 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .44026       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0863       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=   1140.326     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1758 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     147.19        166.96        .94814E-06    .36764E-04
   2  Prefactor     .10000E-03    45.856        .29217E-06** at limit **
   3  Prefactor     .10000E-03    90.779        .85271E-06** at limit **
   4  Prefactor     11.637        39.559        .70875E-06   -.28270E-05
   5  Prefactor     .10000E-03    31.764        .44524E-06** at limit **
   6  Prefactor     .10000E-03    70.165       -.40906E-06** at limit **
   7  Prefactor     .10000E-03    144.35        .14366E-05** at limit **
   8  norm          29.221        31.075        .21430E-07   -.26760E-05
   9  Prefactor     .10000E-03    7.7071        .94809E-07** at limit **
  10  Prefactor     44.487        53.180       -.58055E-07    .37538E-04
  11  Prefactor     25.878        34.896        .39051E-06    .47277E-06
  12  Prefactor     4.7018        27.606        .83275E-05   -.12288E-04
  13  Prefactor     179.59        172.26       -.13501E-06   -.22823E-04
  14  Prefactor     30.665        259.23       -.13110E-05   -.24382E-04
  15  norm          .10000E-03    13.119       -.12773E-06** at limit **
  16  Normalizat    .43987        .58121       -.13470E-05   -.14733E-04
  17  Prefactor     1.0865        .35749       -.91528E-06   -.93193E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 147.186
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.6373
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 29.2214
  Prefactor  = 0.0001
  Prefactor  = 44.4871
  Prefactor  = 25.8782
  Prefactor  = 4.70176
  Prefactor  = 179.59
  Prefactor  = 30.665
  norm       = 0.0001
  Normalizat = 0.439867
  Prefactor  = 1.08653
 **********
 **   18 **HESSE 
 **********

 FCN=   1140.326     FROM HESSE     STATUS=OK           217 CALLS     1975 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     147.19        166.67        .16611E-03   -1.3276    
   2  Prefactor     .10000E-03    45.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    90.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.637        39.576        .11741E-03   -1.5026    
   5  Prefactor     .10000E-03    31.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    144.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          29.221        31.109        .74115E-04   -1.4626    
   9  Prefactor     .10000E-03    7.7100        .91570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.487        53.053        .60119E-04   -1.4373    
  11  Prefactor     25.878        34.819        .78749E-04   -1.4690    
  12  Prefactor     4.7018        27.631        .92765E-03   -1.5274    
  13  Prefactor     179.59        172.45        .15059E-03   -1.3020    
  14  Prefactor     30.665        256.38        .72280E-04   -1.4600    
  15  norm          .10000E-03    13.360        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .43987        .61942        .43095E-03   -1.1529    
  17  Prefactor     1.0865        .39176        .18160E-03   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31466e-10
Minuit parameter uncertainties:
  1  167.206
  2  4.89551e-05
  3  0.000754084
  4  39.6656
  5  1.44919e-05
  6  0.000401624
  7  0.000461032
  8  31.1264
  9  3.10168e-06
  10  53.1094
  11  34.8465
  12  22.8115
  13  172.938
  14  178.382
  15  2.08447e-05
  16  0.629485
  17  0.392799
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  2.922e+01  3.113e+01  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.087e+00  3.928e-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.399e-01  6.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 1.45e-04 +/- 1.55e-04

TS (Fixed Index): 1.81
Ra Dec: 326.645 -13.735
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/911969/likelihoodResults_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.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) = 1139.74777246
delta logL = 0.578503757817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1139.74756895
delta logL = 0.578707270579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.262       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3033       1.0000          .0000       5.0000    
     3 'Normalizat'    .43673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0725       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=   1139.748     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      261 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.293        614.34        .24830E-02    .46170E-04
   2  alpha         2.3046        2.9605        .14359        .35023E-04
   3  Normalizat    .43679        .35353        .97430E-01   -.65163E-04
   4  Prefactor     1.0722        .18409        .38740E-01   -.17338E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.293
  alpha      = 2.30463
  Normalizat = 0.43679
  Prefactor  = 1.07219
 **********
 **   18 **HESSE 
 **********

 FCN=   1139.748     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.293        23.861        .99320E-04   -1.4900    
   2  alpha         2.3046        .78425        .60799E-02   -.78227E-01
   3  Normalizat    .43679        .56861        .43181E-03   -1.1544    
   4  Prefactor     1.0722        .37281        .18209E-03   -.90360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45309e-10
Minuit parameter uncertainties:
  1  23.8752
  2  0.797804
  3  0.576403
  4  0.373714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911969': 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) = 1139.74755817
delta logL = 0.578718044495

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.629e+01  2.388e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.305e+00  7.978e-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.072e+00  3.737e-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.368e-01  5.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 2.30 +/- 0.80
Photon Flux (Free Index): 1.13e-07 +/- 1.23e-07
Energy Flux (Free Index): 6.48e-05 +/- 6.95e-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/911969/cmap_HighResolution_585360001_585619201_4FGL_J2146.5-1344_daily_bin1335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-04', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='6.48e-05', photon_flux_error='5.19e-08', dlogl='5.79e-01', energy_flux='1.45e-04', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-27 14:11:01.645573', photon_index_error2='0.80', photon_index2='2.30', ts='1.81', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='6.95e-05', EG='0.44', time_epoch_completed='1632777061.65', return_code='0', job_id='911969', GAL2='1.07', EG2='0.44', return_code2='0', energy_flux_error='1.55e-04', photon_flux_error2='1.23e-07', ts2='2.97', photon_index='1.50' WHERE bin_id='1335' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 911969: <4FGL_J2146.5-1344_daily_bin1335> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1335 326.645 -13.7347 585360001 585619201 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 :                                   362.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            625 sec.

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

