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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1454
RA = 326.645, Dec = -13.7347
tmin = 616204801, tmax = 616464001
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='912164', job_status='RUN', time_executed='2021-09-27 14:02:26.899482', time_epoch_executed='1632776546.9' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912164/ft1_4FGL_J2146.5-1344_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912164/ft1_4FGL_J2146.5-1344_daily_bin1454.fits outfile=/scratch/kocevski/912164/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1454.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=616204801.0 tmax=616464001.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 4.01
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912164/ft1_filtered_4FGL_J2146.5-1344_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/912164/ltcube_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.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/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits
.....................!
real 15.18
user 14.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912164/ft1_filtered_4FGL_J2146.5-1344_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/912164/ltcube_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.fits outfile=/scratch/kocevski/912164/expmap_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.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/912164/ltcube_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.fits
.....................!
real 192.64
user 187.08
sys 4.61

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/912164/ft1_filtered_4FGL_J2146.5-1344_daily_bin1454.fits scfile=/scratch/kocevski/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits outfile=/scratch/kocevski/912164/cmap_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912164/ft1_filtered_4FGL_J2146.5-1344_daily_bin1454.fits scfile=/scratch/kocevski/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits outfile=/scratch/kocevski/912164/cmap_HighResolution_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912164/ft1_filtered_4FGL_J2146.5-1344_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/912164/ft2_4FGL_J2146.5-1344_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912164/Model_4FGL_J2146.5-1344_daily_bin1454.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/912164/ft1_filtered_4FGL_J2146.5-1344_daily_bin1454.fits.....................!
real 46.54
user 44.78
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.754       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    96.681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.623       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7854       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88217       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=   4286.954     FROM MIGRAD    STATUS=CONVERGED    307 CALLS     1544 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8636        14.251        .16046E-05   -.55707E-04
   2  Prefactor     .10000E-03    7.7858        .25151E-05** at limit **
   3  Prefactor     21.516        51.036       -.24554E-04    .28101E-05
   4  Prefactor     6.0180        5.8818       -.23571E-06   -.40488E-04
   5  Prefactor     .10000E-03    11.783        .10246E-04** at limit **
   6  Prefactor     .10000E-03    15.471       -.55988E-05** at limit **
   7  Prefactor     .10000E-03    4.0024        .21126E-06** at limit **
   8  norm          .10000E-03    2.5777        .88589E-07** at limit **
   9  Prefactor     14.753        8.6231       -.29162E-06    .31808E-04
  10  Prefactor     .10000E-03    9.2611       -.80249E-05** at limit **
  11  Prefactor     3.8678        6.9253       -.44691E-06   -.14055E-03
  12  Prefactor     12.093        13.668       -.11819E-05    .22692E-04
  13  Prefactor     96.680        100.50       -.32976E-06    .90058E-05
  14  Prefactor     24.598        69.347       -.48517E-04    .52121E-05
  15  norm          6.7853        5.6041       -.22870E-06   -.48200E-04
  16  Normalizat    1.0388        .24388        .37433E-05   -.12458E-03
  17  Prefactor     .88201        .14804        .46498E-06   -.93375E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.8636
  Prefactor  = 0.0001
  Prefactor  = 21.5157
  Prefactor  = 6.01801
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7531
  Prefactor  = 0.0001
  Prefactor  = 3.86779
  Prefactor  = 12.0933
  Prefactor  = 96.6803
  Prefactor  = 24.5978
  norm       = 6.78528
  Normalizat = 1.03881
  Prefactor  = 0.882006
 **********
 **   18 **HESSE 
 **********

 FCN=   4286.954     FROM HESSE     STATUS=OK           225 CALLS     1769 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8636        14.242        .16587E-03   -1.5224    
   2  Prefactor     .10000E-03    7.8021        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.516        51.073        .86327E-04   -1.4780    
   4  Prefactor     6.0180        5.8822        .15221E-03   -1.5217    
   5  Prefactor     .10000E-03    12.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0034        .12793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5780        .10267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.753        8.6456        .10428E-03   -1.4940    
  10  Prefactor     .10000E-03    9.2828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8678        6.9187        .20517E-03   -1.5315    
  12  Prefactor     12.093        13.705        .11519E-03   -1.5012    
  13  Prefactor     96.680        100.46        .40880E-04   -1.3738    
  14  Prefactor     24.598        69.482        .80727E-04   -1.4716    
  15  norm          6.7853        5.6013        .13275E-03   -1.5187    
  16  Normalizat    1.0388        .29096        .28554E-03   -.91741    
  17  Prefactor     .88201        .17688        .19278E-03   -.96773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30477e-10
Minuit parameter uncertainties:
  1  14.2498
  2  2.54497e-05
  3  51.1773
  4  5.88274
  5  0.000181225
  6  1.36609e-05
  7  2.87822e-06
  8  5.49645e-07
  9  8.64632
  10  1.63121e-06
  11  6.92017
  12  13.7083
  13  100.638
  14  69.7124
  15  5.60173
  16  0.291408
  17  0.176997
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.000e-04  5.496e-07  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.820e-01  1.770e-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.039e+00  2.914e-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: 2.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912164/likelihoodResults_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.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) = 4286.95524192
delta logL = -0.00140000008469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4286.95384206
delta logL = -1.41752934724e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4286.954     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    650.25        .10289E-02** at limit **
   2  alpha         1.2933        3.0947        .18606        .18636E-07
   3  Normalizat    1.0388        .27080        .28554E-03   -.21500E-05
   4  Prefactor     .88200        .17103        .19278E-03   -.48356E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.29327
  Normalizat = 1.03881
  Prefactor  = 0.882004
 **********
 **   18 **HESSE 
 **********

 FCN=   4286.954     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6614        .20577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2933        3.0959        .74426E-02   -.50372    
   3  Normalizat    1.0388        .27651        .11421E-04   -.91741    
   4  Prefactor     .88200        .17464        .77114E-05   -.96773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26781e-12
Minuit parameter uncertainties:
  1  3.0554e-07
  2  181.802
  3  0.276896
  4  0.17475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912164': 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) = 4286.95384132
delta logL = 6.06722096563e-07

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.000e-04  3.055e-07  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.293e+00  1.818e+02  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.820e-01  1.748e-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.039e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.645 -13.735

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/912164/cmap_HighResolution_616204801_616464001_4FGL_J2146.5-1344_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-05', job_status='DONE', photon_flux_upper_limit='2.55e-08', time_completed='2021-09-27 14:15:07.307395', job_id='912164', GAL2='0.88', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632777307.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1454' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 912164: <4FGL_J2146.5-1344_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1454 326.645 -13.7347 616204801 616464001 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 :                                   483.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            852 sec.

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

