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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin484
RA = 311.72, Dec = -42.9694
tmin = 364780801, tmax = 365040001
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='150546', job_status='RUN', time_executed='2021-09-25 18:06:17.691401', time_epoch_executed='1632618377.69' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150546/ft1_4FGL_J2046.8-4258_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150546/ft1_4FGL_J2046.8-4258_daily_bin484.fits outfile=/scratch/kocevski/150546/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin484.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=364780801.0 tmax=365040001.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.34
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.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/150546/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin484.fits evtable="EVENTS" outfile="/scratch/kocevski/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/150546/ltcube_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.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/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits
.....................!
real 13.43
user 13.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/150546/ltcube_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.fits outfile=/scratch/kocevski/150546/expmap_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.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/150546/ltcube_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.fits
.....................!
real 192.72
user 187.51
sys 4.86

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/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits scfile=/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits outfile=/scratch/kocevski/150546/cmap_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits scfile=/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits outfile=/scratch/kocevski/150546/cmap_HighResolution_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits', '/scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits', expMap='/scratch/kocevski/150546/expmap_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.fits', expCube='/scratch/kocevski/150546/ltcube_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/150546/Model_4FGL_J2046.8-4258_daily_bin484.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/150546/ft1_filtered_4FGL_J2046.8-4258_daily_bin484.fits
Spacecraft file(s): /scratch/kocevski/150546/ft2_4FGL_J2046.8-4258_daily_bin484.fits
Exposure map: /scratch/kocevski/150546/expmap_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.fits
Exposure cube: /scratch/kocevski/150546/ltcube_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/150546/Model_4FGL_J2046.8-4258_daily_bin484.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) = 10201.524087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.413       1.0000         .10000E-03   10000.    
     5 'norm      '    .50659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.511       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3758       1.0000         .10000E-03   10000.    
     9 'norm      '    11.778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.584       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22816E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0101       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85058       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=   10201.52     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2547 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6120        .24232E-07** at limit **
   2  norm          .10000E-03    .29037       -.24135E-06** at limit **
   3  norm          .10000E-03    1.8165       -.42076E-09** at limit **
   4  norm          17.411        11.744        .14790E-06    .39031E-05
   5  norm          .50655        .46164       -.13739E-09    .27078E-04
   6  Prefactor     15.441        43.108        .12083E-04    .13370E-04
   7  norm          .10000E-03    .79270        .62246E-08** at limit **
   8  norm          2.3751        6.2827        .34825E-05    .10106E-04
   9  norm          11.778        12.099       -.53436E-07   -.41619E-05
  10  Prefactor     3.7949        13.028       -.48762E-08   -.64826E-05
  11  Prefactor     16.556        41.067        .47580E-05    .10791E-05
  12  Prefactor     .10000E-03    8.6076        .21140E-07** at limit **
  13  norm          4.4036        1.7011        .39205E-07   -.62846E-04
  14  Prefactor     10.332        15.531        .42154E-06   -.45264E-05
  15  Prefactor     .10000E-03    20.275       -.39850E-06** at limit **
  16  Prefactor     .10000E-03    3.4001       -.13039E-07** at limit **
  17  Prefactor     11.703        16.401        .23136E-06   -.81981E-05
  18  Prefactor     4.0100        3.3940        .11393E-06   -.12871E-04
  19  norm          4.8484        2.9922       -.38692E-07   -.18860E-04
  20  Prefactor     .10000E-03    2.2286        .22590E-07** at limit **
  21  Prefactor     .10000E-03    2.3306        .30741E-07** at limit **
  22  Normalizat    1.0423        .16924       -.11543E-05    .52818E-04
  23  Prefactor     .85057        .82041E-01   -.22816E-06    .14427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.4113
  norm       = 0.506553
  Prefactor  = 15.4414
  norm       = 0.0001
  norm       = 2.37506
  norm       = 11.778
  Prefactor  = 3.7949
  Prefactor  = 16.5563
  Prefactor  = 0.0001
  norm       = 4.40361
  Prefactor  = 10.3324
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.7025
  Prefactor  = 4.00997
  norm       = 4.84838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0423
  Prefactor  = 0.850572
 **********
 **   18 **HESSE 
 **********

 FCN=   10201.52     FROM HESSE     STATUS=OK           376 CALLS     2923 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .53945        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8206        .13292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.411        11.741        .95980E-04   -1.4873    
   5  norm          .50655        .50878        .63935E-03   -1.5566    
   6  Prefactor     15.441        43.199        .10170E-03   -1.4922    
   7  norm          .10000E-03    .80762        .87801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3751        6.2954        .13290E-02   -1.5400    
   9  norm          11.778        12.078        .11673E-03   -1.5021    
  10  Prefactor     3.7949        12.986        .20716E-03   -1.5318    
  11  Prefactor     16.556        41.064        .98349E-04   -1.4894    
  12  Prefactor     .10000E-03    8.8105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4036        1.7047        .77583E-04   -1.5288    
  14  Prefactor     10.332        15.527        .12463E-03   -1.5065    
  15  Prefactor     .10000E-03    20.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.216        .35368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.703        16.376        .11710E-03   -1.5024    
  18  Prefactor     4.0100        3.3904        .16500E-03   -1.5307    
  19  norm          4.8484        2.9921        .13229E-03   -1.5268    
  20  Prefactor     .10000E-03    2.2376        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3412        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0423        .19930        .30765E-03   -.91627    
  23  Prefactor     .85057        .97685E-01    .16832E-03   -.97890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25208e-10
Minuit parameter uncertainties:
  1  8.07355e-07
  2  6.19606e-06
  3  5.10996e-07
  4  11.7429
  5  0.508787
  6  43.2865
  7  6.16651e-07
  8  6.2972
  9  12.0808
  10  12.9958
  11  41.1339
  12  1.23005e-05
  13  1.70474
  14  15.5334
  15  9.24127e-06
  16  0.000297796
  17  16.3822
  18  3.39057
  19  2.99218
  20  1.79415e-06
  21  2.35749e-06
  22  0.199446
  23  0.0977054
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.656e+01  4.113e+01  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:  8.506e-01  9.771e-02  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.042e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 311.720 -42.969
Photon Flux Upper Limit: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150546/likelihoodResults_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10201.0761144
delta logL = 0.439040000394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10200.2137804
delta logL = 1.30137399459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5285       1.0000          .0000       10.000    
     3 'Normalizat'    .94185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88520       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.

 FCN=   10200.21     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      537 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15708E-02    .33693E-03** at limit **
   2  Index         7.5286        1.5056        .11715       -.41688E-04
   3  Normalizat    .94136        .39333E-01    .72707E-01   -.13130E-03
   4  Prefactor     .88542        .19400E-01    .44816E-01   -.17726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.52857
  Normalizat = 0.941356
  Prefactor  = 0.885423
 **********
 **   18 **HESSE 
 **********

 FCN=   10200.21     FROM HESSE     STATUS=OK            33 CALLS      570 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .85742E-03    .93799E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5286        .24687        .42170E-02    .53021    
   3  Normalizat    .94136        .20165        .32171E-03   -.95022    
   4  Prefactor     .88542        .98945E-01    .16528E-03   -.96652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31548e-10
Minuit parameter uncertainties:
  1  1.01635e-09
  2  0.247008
  3  0.201807
  4  0.098965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150546': 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) = 10200.2137731
delta logL = 1.3013812744

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.016e-09  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  7.529e+00  2.470e-01  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:  8.854e-01  9.897e-02  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:  9.414e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 7.53 +/- 0.25
Photon Flux (Free Index): 7.19e-08 +/- 4.89e-08
Energy Flux (Free Index): 8.45e-06 +/- 5.72e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150546/cmap_HighResolution_364780801_365040001_4FGL_J2046.8-4258_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', comment='SUCCESS', energy_flux2='8.45e-06', dlogl='1.30e+00', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-09-25 18:21:02.123237', photon_index_error2='0.25', photon_index2='7.53', ts='0.20', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.15e-08', energy_flux_error2='5.72e-06', EG='1.04', time_epoch_completed='1632619262.12', return_code='0', job_id='150546', GAL2='0.89', EG2='0.94', return_code2='0', photon_flux_error2='4.89e-08', ts2='3.05', photon_index='2.13' WHERE bin_id='484' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 150546: <4FGL_J2046.8-4258_daily_bin484> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin484> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:05:28 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:06:05 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:06:05 2021
Terminated at Sat Sep 25 18:21:02 2021
Results reported at Sat Sep 25 18:21:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin484 311.72 -42.9694 364780801 365040001 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 :                                   883.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            934 sec.

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

