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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1516
RA = 326.645, Dec = -13.7347
tmin = 632275201, tmax = 632534401
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='912265', job_status='RUN', time_executed='2021-09-27 14:03:36.013863', time_epoch_executed='1632776616.01' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912265

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912265/ft1_4FGL_J2146.5-1344_daily_bin1516.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912265/ft1_4FGL_J2146.5-1344_daily_bin1516.fits outfile=/scratch/kocevski/912265/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1516.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=632275201.0 tmax=632534401.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.94
user 3.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912265/ft1_filtered_4FGL_J2146.5-1344_daily_bin1516.fits" evtable="EVENTS" scfile=/scratch/kocevski/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits sctable="SC_DATA" outfile=/scratch/kocevski/912265/ltcube_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.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/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits
.....................!
real 14.29
user 13.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912265/ft1_filtered_4FGL_J2146.5-1344_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits sctable="SC_DATA" expcube=/scratch/kocevski/912265/ltcube_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.fits outfile=/scratch/kocevski/912265/expmap_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.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/912265/ltcube_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.fits
.....................!
real 191.32
user 185.92
sys 4.97

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/912265/ft1_filtered_4FGL_J2146.5-1344_daily_bin1516.fits scfile=/scratch/kocevski/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits outfile=/scratch/kocevski/912265/cmap_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=326.645 yref=-13.7347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912265/ft1_filtered_4FGL_J2146.5-1344_daily_bin1516.fits scfile=/scratch/kocevski/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits outfile=/scratch/kocevski/912265/cmap_HighResolution_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912265/ft1_filtered_4FGL_J2146.5-1344_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/912265/ft2_4FGL_J2146.5-1344_daily_bin1516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912265/Model_4FGL_J2146.5-1344_daily_bin1516.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/912265/ft1_filtered_4FGL_J2146.5-1344_daily_bin1516.fits.....................!
real 58.38
user 56.90
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5242       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.429       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.493       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.9304       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .79408       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=   5841.679     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1643 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.012       -.18376E-05** at limit **
   2  Prefactor     11.430        21.735        .66652E-06    .38065E-04
   3  Prefactor     .10000E-03    19.564       -.13416E-06** at limit **
   4  Prefactor     .10000E-03    1.8468       -.93755E-07** at limit **
   5  Prefactor     .10000E-03    3.9714       -.21130E-06** at limit **
   6  Prefactor     .10000E-03    216.18       -.21520E-05** at limit **
   7  Prefactor     .10000E-03    9.9970       -.20668E-06** at limit **
   8  norm          6.5241        6.5742       -.11536E-06   -.13000E-04
   9  Prefactor     12.431        7.5098        .19508E-06    .59689E-04
  10  Prefactor     .10000E-03    6.8720       -.16649E-07** at limit **
  11  Prefactor     .10000E-03    8.1037       -.22895E-06** at limit **
  12  Prefactor     6.7436        16.082        .15537E-05    .65103E-04
  13  Prefactor     .10000E-03    24.402        .14020E-06** at limit **
  14  Prefactor     95.664        115.46        .23290E-05    .50533E-04
  15  norm          .10000E-03    1.8254       -.82393E-08** at limit **
  16  Normalizat    1.9298        .33763       -.70588E-05    .86925E-04
  17  Prefactor     .79440        .18886        .57031E-05    .48154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.4303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.52413
  Prefactor  = 12.4314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.74355
  Prefactor  = 0.0001
  Prefactor  = 95.6643
  norm       = 0.0001
  Normalizat = 1.92982
  Prefactor  = 0.794401
 **********
 **   18 **HESSE 
 **********

 FCN=   5841.679     FROM HESSE     STATUS=OK           217 CALLS     1860 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.430        21.720        .11850E-03   -1.5032    
   3  Prefactor     .10000E-03    19.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8493        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9875        .14884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    223.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5241        6.5758        .15712E-03   -1.5197    
   9  Prefactor     12.431        7.5083        .11362E-03   -1.5003    
  10  Prefactor     .10000E-03    6.8778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7436        16.085        .15459E-03   -1.5189    
  13  Prefactor     .10000E-03    24.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     95.664        115.96        .20565E-03   -1.3749    
  15  norm          .10000E-03    1.8308        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.9298        .33623        .28623E-03   -.66321    
  17  Prefactor     .79440        .18882        .24244E-03   -.99935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53425e-11
Minuit parameter uncertainties:
  1  0.000511117
  2  21.7345
  3  1.65701e-05
  4  4.43922e-06
  5  1.4027e-05
  6  0.00124069
  7  1.24427e-05
  8  6.57651
  9  7.50883
  10  1.12207e-07
  11  1.54331e-05
  12  16.0954
  13  2.55087e-05
  14  116.24
  15  6.40065e-07
  16  0.336639
  17  0.188974
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  6.524e+00  6.577e+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:  7.944e-01  1.890e-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.930e+00  3.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.45
Ra Dec: 326.645 -13.735
Photon Index (Fixed Index): 1.50 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.10e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 3.27e-05

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

Saving results to:
/scratch/kocevski/912265/likelihoodResults_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.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) = 5841.64582222
delta logL = 0.0332981697766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5841.64505758
delta logL = 0.034062803079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2923       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79335       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=   5841.645     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      229 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2926        6.5434        .16002E-03   -.80322E-03
   2  alpha         1.6864        .72941        .16398E-01   -.10419E-03
   3  Normalizat    1.9296        .32112        .28623E-03    .65122E-04
   4  Prefactor     .79337        .18710        .24256E-03    .10278E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.29257
  alpha      = 1.68638
  Normalizat = 1.92962
  Prefactor  = 0.793368
 **********
 **   18 **HESSE 
 **********

 FCN=   5841.645     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2926        6.4758        .32004E-04   -1.5206    
   2  alpha         1.6864        .72228        .65591E-03   -.33148    
   3  Normalizat    1.9296        .32144        .57247E-04   -.66326    
   4  Prefactor     .79337        .18729        .97025E-05   -.99973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18745e-09
Minuit parameter uncertainties:
  1  6.47648
  2  0.734022
  3  0.321798
  4  0.187444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912265': 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) = 5841.64505758
delta logL = 0.0340628088297

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  6.293e+00  6.476e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.686e+00  7.340e-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:  7.934e-01  1.874e-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.930e+00  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 326.645 -13.735
Photon Index (Free Index): 1.69 +/- 0.73
Photon Flux (Free Index): 1.35e-08 +/- 1.72e-08
Energy Flux (Free Index): 2.57e-05 +/- 3.40e-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/912265/cmap_HighResolution_632275201_632534401_4FGL_J2146.5-1344_daily_bin1516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-04', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='2.57e-05', photon_flux_error='1.10e-08', dlogl='3.41e-02', energy_flux='3.25e-05', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-27 14:15:02.037808', photon_index_error2='0.73', photon_index2='1.69', ts='3.45', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='4.59e-08', energy_flux_error2='3.40e-05', EG='1.93', time_epoch_completed='1632777302.04', return_code='0', job_id='912265', GAL2='0.79', EG2='1.93', return_code2='0', energy_flux_error='3.27e-05', photon_flux_error2='1.72e-08', ts2='3.51', photon_index='1.50' WHERE bin_id='1516' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 912265: <4FGL_J2146.5-1344_daily_bin1516> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1516 326.645 -13.7347 632275201 632534401 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 :                                   539.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             278.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            837 sec.

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

