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


Performing analysis on: 4FGL_J2146.4-1528_daily_bin1626
RA = 326.621, Dec = -15.4757
tmin = 660787201, tmax = 661046401
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='171851', job_status='RUN', time_executed='2021-12-13 00:37:16.078703', time_epoch_executed='1639384636.08' WHERE source_name='4FGL J2146.4-1528' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171851/ft1_4FGL_J2146.4-1528_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171851/ft1_4FGL_J2146.4-1528_daily_bin1626.fits outfile=/scratch/kocevski/171851/ft1_filteredMKT_4FGL_J2146.4-1528_daily_bin1626.fits ra=326.621 dec=-15.4757 rad=12.0 tmin=660787201.0 tmax=661046401.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.52
user 3.28
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.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/171851/ft1_filteredMKT_4FGL_J2146.4-1528_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/171851/ltcube_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.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/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits
.....................!
real 12.25
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/171851/ltcube_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.fits outfile=/scratch/kocevski/171851/expmap_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.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/171851/ltcube_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.fits
.....................!
real 193.11
user 187.59
sys 5.17

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2146.4-1528 @ 326.621 -15.4757

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits scfile=/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits outfile=/scratch/kocevski/171851/cmap_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.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.621 yref=-15.4757 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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits scfile=/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits outfile=/scratch/kocevski/171851/cmap_HighResolution_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.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.621 yref=-15.4757 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171851/Model_4FGL_J2146.4-1528_daily_bin1626.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/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits.....................!
real 48.49
user 47.13
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits', '/scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits', expMap='/scratch/kocevski/171851/expmap_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.fits', expCube='/scratch/kocevski/171851/ltcube_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171851/Model_4FGL_J2146.4-1528_daily_bin1626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2146.4-1528'

4FGL J2146.4-1528
   Spectrum: PowerLaw
286    Prefactor:  4.163e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.796e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171851/ft1_filtered_4FGL_J2146.4-1528_daily_bin1626.fits
Spacecraft file(s): /scratch/kocevski/171851/ft2_4FGL_J2146.4-1528_daily_bin1626.fits
Exposure map: /scratch/kocevski/171851/expmap_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.fits
Exposure cube: /scratch/kocevski/171851/ltcube_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171851/Model_4FGL_J2146.4-1528_daily_bin1626.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) = 4919.08411023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.349       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11859       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.435       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    127.82       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .80675       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4919.081     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1574 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.583       -.63276E-05** at limit **
   2  Prefactor     14.348        15.066       -.32926E-06    .97226E-04
   3  Prefactor     .67396E-01    5.2108       -.21668E-05    .30655E-03
   4  Prefactor     .10000E-03    3.0268        .95207E-07** at limit **
   5  Prefactor     .10000E-03    20.340        .15180E-04** at limit **
   6  Prefactor     9.1493        13.157       -.15707E-05   -.30307E-04
   7  Prefactor     16.431        21.021       -.50595E-05    .42984E-04
   8  norm          .10000E-03    6.1773       -.58478E-06** at limit **
   9  Prefactor     .10000E-03    7.7970       -.13750E-05** at limit **
  10  Prefactor     .10000E-03    6.7031        .12531E-05** at limit **
  11  Prefactor     .10000E-03    12.387        .52472E-05** at limit **
  12  Prefactor     24.252        18.094       -.26397E-05    .56278E-04
  13  Prefactor     .10000E-03    17.183       -.19017E-04** at limit **
  14  Prefactor     .10000E-03    19.833        .85179E-05** at limit **
  15  Prefactor     127.76        94.743       -.52139E-04    .79356E-05
  16  Normalizat    .80703        .25174        .11417E-04    .27574E-04
  17  Prefactor     1.0293        .14996       -.12667E-05    .63940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.3479
  Prefactor  = 0.0673957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.14932
  Prefactor  = 16.4312
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 127.761
  Normalizat = 0.807033
  Prefactor  = 1.02926
 **********
 **   18 **HESSE 
 **********

 FCN=   4919.081     FROM HESSE     STATUS=OK           227 CALLS     1801 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.348        15.069        .10574E-03   -1.4950    
   3  Prefactor     .67396E-01    5.2174        .50706E-01   -1.5656    
   4  Prefactor     .10000E-03    3.0362        .11916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1493        13.156        .13248E-03   -1.5103    
   7  Prefactor     16.431        21.076        .98794E-04   -1.4897    
   8  norm          .10000E-03    6.2220        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7062        .17734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.252        18.204        .81328E-04   -1.4723    
  13  Prefactor     .10000E-03    17.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     127.76        94.839        .17804E-03   -1.3442    
  16  Normalizat    .80703        .30166        .32877E-03   -.99808    
  17  Prefactor     1.0293        .18122        .18399E-03   -.91760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95412e-09
Minuit parameter uncertainties:
  1  7.59814e-05
  2  15.0728
  3  1.1852
  4  1.34698e-05
  5  3.41672e-05
  6  13.1601
  7  21.0854
  8  8.38633e-06
  9  1.45401e-05
  10  1.54651e-05
  11  0.000105658
  12  18.2082
  13  4.72693e-05
  14  1.75826e-05
  15  94.952
  16  0.302292
  17  0.18133
Done.

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

Extracting fit parameters...

4FGL J2146.4-1528
   Spectrum: PowerLaw
286    Prefactor:  1.643e+01  2.109e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.796e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.029e+00  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  8.070e-01  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 326.621 -15.476
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171851/likelihoodResults_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.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) = 4919.0193629
delta logL = 0.0620654563054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4919.00672002
delta logL = 0.074708331058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.366       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2134       1.0000          .0000       10.000    
     3 'Normalizat'    .79141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4919.007     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.341        22.737        .54780E-03    .32064E-04
   2  Index         3.2154        1.3059        .10625E-01    .20043E-03
   3  Normalizat    .79190        .29033        .33163E-03    .58279E-05
   4  Prefactor     1.0365        .17935        .18341E-03   -.34699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3414
  Index      = 3.21541
  Normalizat = 0.791905
  Prefactor  = 1.03654
 **********
 **   18 **HESSE 
 **********

 FCN=   4919.007     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.341        20.926        .10956E-03   -1.4977    
   2  Index         3.2154        1.2037        .21251E-02   -.36497    
   3  Normalizat    .79190        .29076        .13265E-04   -1.0037    
   4  Prefactor     1.0365        .17948        .36682E-04   -.91521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94964e-12
Minuit parameter uncertainties:
  1  20.9373
  2  1.21744
  3  0.291331
  4  0.179581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171851': 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) = 4919.00671615
delta logL = 0.0747122020412

Extracting fit parameters...

4FGL J2146.4-1528
   Spectrum: PowerLaw
286    Prefactor:  1.334e+01  2.094e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.215e+00  1.217e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.037e+00  1.796e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  7.919e-01  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 326.621 -15.476

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/171851/cmap_HighResolution_660787201_661046401_4FGL_J2146.4-1528_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2021-12-13 00:45:16.253153', job_id='171851', GAL2='1.04', fit_tolerance='1e-08', EG2='0.79', EG='0.81', time_epoch_completed='1639385116.25', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.47e-02', ts2='0.92', photon_index_error='0.00', photon_index='2.80' WHERE bin_id='1626' AND source_name='4FGL J2146.4-1528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:45:16 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 171851: <4FGL_J2146.4-1528_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2146.4-1528_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:35:50 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:35:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:35:52 2021
Terminated at Mon Dec 13 00:45:17 2021
Results reported at Mon Dec 13 00:45:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.4-1528_daily_bin1626 326.621 -15.4757 660787201 661046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2146.4-1528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   481.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            567 sec.

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

