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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1447
RA = 326.645, Dec = -13.7347
tmin = 614390401, tmax = 614649601
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='912152', job_status='RUN', time_executed='2021-09-27 14:02:21.702540', time_epoch_executed='1632776541.7' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912152

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912152/ft1_4FGL_J2146.5-1344_daily_bin1447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912152/ft1_4FGL_J2146.5-1344_daily_bin1447.fits outfile=/scratch/kocevski/912152/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1447.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=614390401.0 tmax=614649601.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.00
user 3.75
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912152/ft1_filtered_4FGL_J2146.5-1344_daily_bin1447.fits" evtable="EVENTS" scfile=/scratch/kocevski/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits sctable="SC_DATA" outfile=/scratch/kocevski/912152/ltcube_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.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/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits
.....................!
real 13.82
user 13.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912152/ft1_filtered_4FGL_J2146.5-1344_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits sctable="SC_DATA" expcube=/scratch/kocevski/912152/ltcube_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.fits outfile=/scratch/kocevski/912152/expmap_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.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/912152/ltcube_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.fits
.....................!
real 192.11
user 186.44
sys 5.27

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/912152/ft1_filtered_4FGL_J2146.5-1344_daily_bin1447.fits scfile=/scratch/kocevski/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits outfile=/scratch/kocevski/912152/cmap_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.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/912152/ft1_filtered_4FGL_J2146.5-1344_daily_bin1447.fits scfile=/scratch/kocevski/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits outfile=/scratch/kocevski/912152/cmap_HighResolution_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912152/ft1_filtered_4FGL_J2146.5-1344_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/912152/ft2_4FGL_J2146.5-1344_daily_bin1447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912152/Model_4FGL_J2146.5-1344_daily_bin1447.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/912152/ft1_filtered_4FGL_J2146.5-1344_daily_bin1447.fits.....................!
real 53.16
user 51.75
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9513       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.070       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26401E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.058       1.0000         .10000E-03   10000.    
    15 'norm      '    .10595E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98370       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=   5349.450     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1575 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6443       -.72110E-05** at limit **
   2  Prefactor     .10000E-03    7.7775       -.39314E-05** at limit **
   3  Prefactor     .10000E-03    18.895       -.18637E-05** at limit **
   4  Prefactor     .10000E-03    1.7402       -.42297E-07** at limit **
   5  Prefactor     4.9566        12.086       -.37615E-05   -.10383E-03
   6  Prefactor     .10000E-03    21.538        .20574E-05** at limit **
   7  Prefactor     11.073        17.079       -.63882E-05   -.20487E-04
   8  norm          2.8863        4.9660       -.72260E-06   -.18731E-03
   9  Prefactor     .10000E-03    2.6423        .17826E-07** at limit **
  10  Prefactor     .10000E-03    6.9698       -.51646E-06** at limit **
  11  Prefactor     3.4818        9.6062       -.78216E-06   -.16833E-03
  12  Prefactor     .10000E-03    7.6377        .45646E-05** at limit **
  13  Prefactor     .10000E-03    254.74       -.94551E-05** at limit **
  14  Prefactor     97.046        79.192       -.93117E-05   -.14222E-04
  15  norm          .10006E-03    4.1192        .26529E-05** at limit **
  16  Normalizat    1.1258        .23109        .18864E-05   -.21486E-03
  17  Prefactor     .98366        .13880        .35213E-06   -.95728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95661
  Prefactor  = 0.0001
  Prefactor  = 11.0735
  norm       = 2.88633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48176
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 97.0465
  norm       = 0.000100065
  Normalizat = 1.12584
  Prefactor  = 0.983661
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.450     FROM HESSE     STATUS=OK           215 CALLS     1790 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7447        .94223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9566        12.153        .18074E-03   -1.5263    
   6  Prefactor     .10000E-03    21.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.073        17.134        .12041E-03   -1.5042    
   8  norm          2.8863        4.9607        .20847E-03   -1.5368    
   9  Prefactor     .10000E-03    2.6527        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4818        9.6161        .21676E-03   -1.5335    
  12  Prefactor     .10000E-03    7.6876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    256.92        .19963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     97.046        79.388        .40801E-04   -1.3735    
  15  norm          .10006E-03    9.8675        .27272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1258        .27733        .29431E-03   -.88926    
  17  Prefactor     .98366        .16836        .19145E-03   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75207e-09
Minuit parameter uncertainties:
  1  1.12342e-05
  2  1.3907e-06
  3  8.38322e-06
  4  1.03797e-06
  5  12.1586
  6  1.69517e-05
  7  17.1411
  8  4.9614
  9  1.76951e-06
  10  1.02084e-05
  11  9.62037
  12  1.15709e-05
  13  0.000875497
  14  79.4748
  15  0.00160073
  16  0.277692
  17  0.168455
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  2.886e+00  4.961e+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:  9.837e-01  1.685e-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.126e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912152/likelihoodResults_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.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) = 5349.34178495
delta logL = 0.107970491921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5349.33911219
delta logL = 0.110643254566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5414       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2250       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98220       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=   5349.339     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5403        97.205        .64043E-02   -.16199E-03
   2  alpha         2.2241        3.4778        .41471       -.17109E-04
   3  Normalizat    1.1207        .67735E-01    .66645E-01   -.12704E-03
   4  Prefactor     .98235        .36513E-01    .46044E-01   -.88587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54028
  alpha      = 2.22412
  Normalizat = 1.12072
  Prefactor  = 0.982345
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.339     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5403        4.9938        .16336E-03   -1.5389    
   2  alpha         2.2241        1.5069        .15912E-01   -.11058    
   3  Normalizat    1.1207        .27281        .29484E-03   -.89089    
   4  Prefactor     .98235        .16741        .19151E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83561e-10
Minuit parameter uncertainties:
  1  4.9946
  2  1.61911
  3  0.273152
  4  0.167494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912152': 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) = 5349.33911143
delta logL = 0.110644017604

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  2.540e+00  4.995e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.224e+00  1.619e+00  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:  9.823e-01  1.675e-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.121e+00  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
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/912152/cmap_HighResolution_614390401_614649601_4FGL_J2146.5-1344_daily_bin1447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2021-09-27 14:11:25.873198', job_id='912152', GAL2='0.98', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1632777085.87', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.11e-01', ts2='0.79', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1447' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:11:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 912152: <4FGL_J2146.5-1344_daily_bin1447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1447 326.645 -13.7347 614390401 614649601 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 :                                   514.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            631 sec.

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

