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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1210
RA = 311.72, Dec = -42.9694
tmin = 552960001, tmax = 553219201
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='153788', job_status='RUN', time_executed='2021-09-25 18:23:27.586937', time_epoch_executed='1632619407.59' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153788/ft1_4FGL_J2046.8-4258_daily_bin1210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153788/ft1_4FGL_J2046.8-4258_daily_bin1210.fits outfile=/scratch/kocevski/153788/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1210.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=552960001.0 tmax=553219201.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 2.83
user 2.61
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.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/153788/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1210.fits evtable="EVENTS" outfile="/scratch/kocevski/153788/ft1_filtered_4FGL_J2046.8-4258_daily_bin1210.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153788/ft1_filtered_4FGL_J2046.8-4258_daily_bin1210.fits" evtable="EVENTS" scfile=/scratch/kocevski/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.fits sctable="SC_DATA" outfile=/scratch/kocevski/153788/ltcube_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.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/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.fits
.....................!
real 16.57
user 16.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153788/ft1_filtered_4FGL_J2046.8-4258_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.fits sctable="SC_DATA" expcube=/scratch/kocevski/153788/ltcube_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.fits outfile=/scratch/kocevski/153788/expmap_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.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/153788/ltcube_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.fits
.....................!
real 192.33
user 185.98
sys 5.62

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/153788/ft1_filtered_4FGL_J2046.8-4258_daily_bin1210.fits scfile=/scratch/kocevski/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.fits outfile=/scratch/kocevski/153788/cmap_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153788/ft1_filtered_4FGL_J2046.8-4258_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/153788/ft2_4FGL_J2046.8-4258_daily_bin1210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153788/Model_4FGL_J2046.8-4258_daily_bin1210.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/153788/ft1_filtered_4FGL_J2046.8-4258_daily_bin1210.fits...................................!
real 16.18
user 14.92
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9978.1       1.0000         .10000E-03   10000.    
     2 'norm      '    9999.8       1.0000         .10000E-03   10000.    
     3 'norm      '    9999.8       1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9995.6       1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    7737.0       1.0000         .10000E-03   10000.    
     9 'norm      '    .15694E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19729E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24913E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12336E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52762E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4726       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4284       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1294       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=   446.1670     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     3773 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        5880.8       -.26158E-03** at limit **
   2  norm         10000.0        9882.0        .46351E-05** at limit **
   3  norm         10000.0        9494.7        .55935E-05** at limit **
   4  norm         10000.0        9299.5       -.32472E-05** at limit **
   5  norm         10000.0        1703.8       -.14088E-05** at limit **
   6  Prefactor    10000.0        6561.7        .72625E-04** at limit **
   7  norm         10000.0        1354.6       -.24031E-05** at limit **
   8  norm          7948.8        5262.5        .28129E-02   -.35172E-06
   9  norm          .10000E-03    1302.5       -.41666E-06** at limit **
  10  Prefactor     .10000E-03    1425.3        .55678E-06** at limit **
  11  Prefactor     .10000E-03    2051.0        .10219E-05** at limit **
  12  Prefactor     .10000E-03    200.30        .53894E-06** at limit **
  13  norm          .10000E-03    18.143        .46825E-06** at limit **
  14  Prefactor     .10000E-03    66.688        .16753E-05** at limit **
  15  Prefactor     .10000E-03    103.98        .78386E-07** at limit **
  16  Prefactor     .10000E-03    40.294        .31967E-06** at limit **
  17  Prefactor     .10000E-03    67.472        .10405E-05** at limit **
  18  Prefactor     .10637E-03    21.611       -.13745E-05** at limit **
  19  norm          2.4764        8.2526        .80228E-06   -.10080E-03
  20  Prefactor     .10000E-03    14.733        .27911E-05** at limit **
  21  Prefactor     7.4287        21.458        .74183E-06   -.10467E-03
  22  Normalizat    .10000E-01    .19918        .29744E-04** at limit **
  23  Prefactor     1.1290        .29557       -.44977E-05   -.14086E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  norm       = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 7948.78
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000106368
  norm       = 2.47636
  Prefactor  = 0.0001
  Prefactor  = 7.42874
  Normalizat = 0.01
  Prefactor  = 1.12904
 **********
 **   18 **HESSE 
 **********

 FCN=   446.1670     FROM HESSE     STATUS=OK           356 CALLS     4129 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        6206.0        .42748E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        9881.2        .19880E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        9492.6        .20077E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        9301.1        .20419E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        1704.4        .20396E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6525.5        .95728E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        1355.3        .20598E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7948.8        5276.7        .47797E-03    .63076    
   9  norm          .10000E-03    1302.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1425.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2050.7        .21466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    200.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.148        .87935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.664        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    103.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.547        .13103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.492        .16970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10637E-03    623.15        .17789E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4764        8.2114        .10407E-03   -1.5393    
  20  Prefactor     .10000E-03    14.735        .79213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.4287        21.407        .14715E-03   -1.5163    
  22  Normalizat    .10000E-01    .20156        .57937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1290        .28000        .16545E-03   -.88544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01922e-08
Minuit parameter uncertainties:
  1  4.54382
  2  0.0766644
  3  0.0895976
  4  0.00257776
  5  0.00073598
  6  0.581154
  7  0.000246481
  8  50155.4
  9  0.00219975
  10  0.00226193
  11  6.99099e-05
  12  0.000222755
  13  1.06208e-05
  14  7.01582e-05
  15  4.25472e-05
  16  8.42925e-08
  17  4.82386e-06
  18  0.127331
  19  8.21511
  20  3.84152e-05
  21  21.4288
  22  1.95745e-06
  23  0.280363
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  6.991e-05  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:  1.129e+00  2.804e-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.000e-02  1.957e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 311.720 -42.969
Photon Flux Upper Limit: 3.35e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153788/likelihoodResults_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.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) = 446.166967063
delta logL = -2.1632423568e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 446.166967058
delta logL = -2.15825451733e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96339E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1344       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1290       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=   446.1670     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    898.83        .18143E-01** at limit **
   2  Index         2.4259        5.4523        .50000        .22539E-06
   3  Normalizat    .10000E-01    .25202E-03    .57926E-03** at limit **
   4  Prefactor     1.1290        .89413E-02    .16545E-03    .38441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100053
  Index      = 2.42586
  Normalizat = 0.01
  Prefactor  = 1.12904
 **********
 **   18 **HESSE 
 **********

 FCN=   446.1670     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    7017.0        .36286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4259        5.4909        .50000       -.54081    
   3  Normalizat    .10000E-01    .12938E-02    .11585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1290        .20259E-01    .33089E-04   -.88544    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.26262e-09
Minuit parameter uncertainties:
  1  0.0316758
  2  1706.52
  3  1.73101e-08
  4  0.0202591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153788': 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): 102
logL (Free Index) = 446.16696491
delta logL = -1.08129825094e-08

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.001e-04  3.168e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.426e+00  1.707e+03  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:  1.129e+00  2.026e-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.000e-02  1.731e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 311.720 -42.969

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/153788/cmap_HighResolution_552960001_553219201_4FGL_J2046.8-4258_daily_bin1210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-01', job_status='DONE', photon_flux_upper_limit='3.35e-06', time_completed='2021-09-25 18:29:15.806011', job_id='153788', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632619755.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1210' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:29:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 153788: <4FGL_J2046.8-4258_daily_bin1210> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1210> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:16:05 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:20:26 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:26 2021
Terminated at Sat Sep 25 18:29:16 2021
Results reported at Sat Sep 25 18:29:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1210 311.72 -42.9694 552960001 553219201 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 :                                   348.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             193.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            791 sec.

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

