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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1225
RA = 311.72, Dec = -42.9694
tmin = 556848001, tmax = 557107201
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='153812', job_status='RUN', time_executed='2021-09-25 18:22:22.088822', time_epoch_executed='1632619342.09' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153812/ft1_4FGL_J2046.8-4258_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153812/ft1_4FGL_J2046.8-4258_daily_bin1225.fits outfile=/scratch/kocevski/153812/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1225.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=556848001.0 tmax=557107201.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.73
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.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/153812/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.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.54
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/153812/ltcube_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.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/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits
.....................!
real 15.16
user 14.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/153812/ltcube_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.fits outfile=/scratch/kocevski/153812/expmap_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.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/153812/ltcube_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.fits
.....................!
real 192.13
user 186.89
sys 4.64

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

Setting source of interest to:
4FGL J2046.8-4258 @ 311.72 -42.9694

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits scfile=/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits outfile=/scratch/kocevski/153812/cmap_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.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=311.72 yref=-42.9694 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits scfile=/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits outfile=/scratch/kocevski/153812/cmap_HighResolution_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.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=311.72 yref=-42.9694 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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153812/Model_4FGL_J2046.8-4258_daily_bin1225.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/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits.....................!
real 29.23
user 27.73
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits', '/scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits', expMap='/scratch/kocevski/153812/expmap_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.fits', expCube='/scratch/kocevski/153812/ltcube_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153812/Model_4FGL_J2046.8-4258_daily_bin1225.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2046.8-4258'

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  5.589e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.134e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.921e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/153812/ft1_filtered_4FGL_J2046.8-4258_daily_bin1225.fits
Spacecraft file(s): /scratch/kocevski/153812/ft2_4FGL_J2046.8-4258_daily_bin1225.fits
Exposure map: /scratch/kocevski/153812/expmap_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.fits
Exposure cube: /scratch/kocevski/153812/ltcube_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153812/Model_4FGL_J2046.8-4258_daily_bin1225.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) = 2285.04708397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .31905       1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .70621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.912       1.0000         .10000E-03   10000.    
     7 'norm      '    .14653E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    151.10       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17354E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5724       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2285.014     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2556 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.997       -.37916E-07** at limit **
   2  norm          .31856        1.2198        .36023E-06    .74772E-03
   3  norm          .10000E-03    5.8786       -.27753E-06** at limit **
   4  norm          .10000E-03    52.909       -.11073E-05** at limit **
   5  norm          .70574        2.4050        .49687E-06    .35118E-03
   6  Prefactor     49.930        121.64       -.26953E-06    .17797E-04
   7  norm          .10037E-03    13.149        .51801E-05** at limit **
   8  norm          .10000E-03    40.276       -.11526E-05** at limit **
   9  norm          .10000E-03    17.481        .91138E-07** at limit **
  10  Prefactor     .10000E-03    33.802        .54193E-06** at limit **
  11  Prefactor     151.24        146.70        .18147E-05    .65986E-04
  12  Prefactor     .10000E-03    103.16       -.93013E-06** at limit **
  13  norm          .10000E-03    2.2562        .16492E-06** at limit **
  14  Prefactor     .10000E-03    94.871        .74318E-06** at limit **
  15  Prefactor     37.887        243.65        .88756E-05    .35108E-04
  16  Prefactor     .10000E-03    9.5339       -.30186E-07** at limit **
  17  Prefactor     .10000E-03    39.054        .32264E-06** at limit **
  18  Prefactor     .10000E-03    10.010        .78843E-07** at limit **
  19  norm          .10000E-03    9.1860        .43381E-06** at limit **
  20  Prefactor     72.046        145.69       -.44303E-05   -.92853E-04
  21  Prefactor     .10009E-03    121.03        .11146E-04** at limit **
  22  Normalizat    1.5731        .50389       -.92961E-05   -.19538E-04
  23  Prefactor     .90416        .22103        .57432E-05    .27677E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.318556
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.70574
  Prefactor  = 49.9297
  norm       = 0.000100374
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 151.236
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 37.8874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.0459
  Prefactor  = 0.000100087
  Normalizat = 1.57306
  Prefactor  = 0.904163
 **********
 **   18 **HESSE 
 **********

 FCN=   2285.014     FROM HESSE     STATUS=OK           354 CALLS     2910 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.997        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .31856        1.1949        .98526E-04   -1.5595    
   3  norm          .10000E-03    5.8945        .11325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    53.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .70574        2.3785        .13044E-03   -1.5540    
   6  Prefactor     49.930        121.55        .56763E-04   -1.4294    
   7  norm          .10037E-03    34.608        .20285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    40.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     151.24        146.70        .16395E-03   -1.3242    
  12  Prefactor     .10000E-03    103.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2835        .70101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    94.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.887        246.38        .65137E-04   -1.4476    
  16  Prefactor     .10000E-03    9.5363        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.037        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.1976        .14161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     72.046        148.17        .23663E-03   -1.4008    
  21  Prefactor     .10009E-03    128.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5731        .55448        .33836E-03   -.75746    
  23  Prefactor     .90416        .24056        .18838E-03   -.95996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2698e-08
Minuit parameter uncertainties:
  1  1.15396e-05
  2  1.19502
  3  4.08151e-05
  4  0.000493518
  5  2.37878
  6  122.166
  7  0.00720055
  8  0.000464536
  9  1.78258e-05
  10  0.000166307
  11  147.057
  12  0.000480833
  13  1.29399e-05
  14  0.000566497
  15  194.41
  16  1.95529e-05
  17  8.11394e-05
  18  2.33007e-05
  19  7.98435e-05
  20  148.934
  21  0.00672326
  22  0.556658
  23  0.240841
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.512e+02  1.471e+02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.134e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.921e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.042e-01  2.408e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.573e+00  5.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 311.720 -42.969
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 7.12e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 3.63e-05

TS (Fixed Index): 2.10
Ra Dec: 311.720 -42.969
Photon Flux Upper Limit: 2.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153812/likelihoodResults_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.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) = 2284.85674859
delta logL = 0.157743352505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2284.84752177
delta logL = 0.166970169144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.404       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7160       1.0000          .0000       10.000    
     3 'Normalizat'    1.5093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   2284.848     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.325        176.56        .23754E-03   -.56523E-04
   2  Index         2.7174        1.3447        .40348E-02    .24157E-04
   3  Normalizat    1.5087        .55810        .34414E-03    .16176E-03
   4  Prefactor     .92168        .23893        .18674E-03   -.96170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.3255
  Index      = 2.71741
  Normalizat = 1.50873
  Prefactor  = 0.921681
 **********
 **   18 **HESSE 
 **********

 FCN=   2284.848     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.325        141.99        .95016E-05   -1.4017    
   2  Index         2.7174        1.0832        .16139E-03   -.47408    
   3  Normalizat    1.5087        .55176        .68827E-04   -.77533    
   4  Prefactor     .92168        .23761        .37349E-04   -.95388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08273e-09
Minuit parameter uncertainties:
  1  142.676
  2  1.09419
  3  0.553986
  4  0.237875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153812': 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) = 2284.84751959
delta logL = 0.166972352443

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  7.133e+01  1.427e+02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.717e+00  1.094e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.921e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.217e-01  2.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.509e+00  5.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 2.72 +/- 1.09
Photon Flux (Free Index): 1.28e-07 +/- 1.53e-07
Energy Flux (Free Index): 3.04e-05 +/- 2.69e-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/153812/cmap_HighResolution_556848001_557107201_4FGL_J2046.8-4258_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='3.04e-05', photon_flux_error='7.12e-08', dlogl='1.67e-01', energy_flux='3.74e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-25 18:29:47.349732', photon_index_error2='1.09', photon_index2='2.72', ts='2.10', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.68e-07', energy_flux_error2='2.69e-05', EG='1.57', time_epoch_completed='1632619787.35', return_code='0', job_id='153812', GAL2='0.92', EG2='1.51', return_code2='0', energy_flux_error='3.63e-05', photon_flux_error2='1.53e-07', ts2='2.46', photon_index='2.13' WHERE bin_id='1225' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:29:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 153812: <4FGL_J2046.8-4258_daily_bin1225> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1225> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:16:07 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:20:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 18:20:40 2021
Terminated at Sat Sep 25 18:29:47 2021
Results reported at Sat Sep 25 18:29:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1225 311.72 -42.9694 556848001 557107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2046.8-4258 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   443.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   547 sec.
    Turnaround time :                            820 sec.

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

