/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 182 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2046.8-4258_daily_bin248
RA = 311.72, Dec = -42.9694
tmin = 303609601, tmax = 303868801
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='148949', job_status='RUN', time_executed='2021-09-25 18:03:44.477480', time_epoch_executed='1632618224.48' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148949/ft1_4FGL_J2046.8-4258_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148949/ft1_4FGL_J2046.8-4258_daily_bin248.fits outfile=/scratch/kocevski/148949/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin248.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=303609601.0 tmax=303868801.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.42
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.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/148949/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin248.fits evtable="EVENTS" outfile="/scratch/kocevski/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.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/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/148949/ltcube_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.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/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits
.....................!
real 14.70
user 14.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/148949/ltcube_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.fits outfile=/scratch/kocevski/148949/expmap_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.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/148949/ltcube_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.fits
.....................!
real 191.89
user 186.14
sys 5.20

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/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.fits scfile=/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits outfile=/scratch/kocevski/148949/cmap_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.fits scfile=/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits outfile=/scratch/kocevski/148949/cmap_HighResolution_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.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.57
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/148949/ft2_4FGL_J2046.8-4258_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/148949/Model_4FGL_J2046.8-4258_daily_bin248.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/148949/ft1_filtered_4FGL_J2046.8-4258_daily_bin248.fits.....................!
real 56.62
user 55.22
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .89469       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.501       1.0000         .10000E-03   10000.    
     5 'norm      '    .16867E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9194       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11870E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.8754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.805       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8588       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68603       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0799       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=   7041.204     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2505 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.380        .10967E-05** at limit **
   2  norm          .89455        1.0738       -.18503E-07   -.78296E-03
   3  norm          .10000E-03    3.8323        .53018E-07** at limit **
   4  norm          12.507        18.917        .15996E-05    .26741E-04
   5  norm          .10004E-03    .99945       -.80351E-06** at limit **
   6  Prefactor     .10000E-03    61.197       -.33759E-04** at limit **
   7  norm          7.9204        4.5353        .15093E-05    .11212E-04
   8  norm          .10000E-03    3.0087        .32283E-07** at limit **
   9  norm          .10000E-03    5.3606        .47793E-05** at limit **
  10  Prefactor     38.160        23.588        .59327E-06   -.44945E-05
  11  Prefactor     .10000E-03    15.458       -.41331E-05** at limit **
  12  Prefactor     .10000E-03    52.946        .30031E-04** at limit **
  13  norm          9.8755        2.7166        .57597E-07   -.28675E-03
  14  Prefactor     46.812        35.442        .59966E-05   -.54559E-06
  15  Prefactor     .10000E-03    13.866        .18610E-05** at limit **
  16  Prefactor     11.293        7.5427        .88221E-08   -.83810E-04
  17  Prefactor     63.566        33.501        .21032E-05   -.68876E-05
  18  Prefactor     .10000E-03    1.6758        .26857E-08** at limit **
  19  norm          4.8593        4.1480        .37806E-06   -.16332E-04
  20  Prefactor     .10000E-03    19.075        .70826E-06** at limit **
  21  Prefactor     .10000E-03    7.0714       -.55785E-06** at limit **
  22  Normalizat    .68581        .24241       -.35761E-05   -.61445E-04
  23  Prefactor     1.0799        .11815        .12198E-06    .99120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.894553
  norm       = 0.0001
  norm       = 12.5066
  norm       = 0.000100036
  Prefactor  = 0.0001
  norm       = 7.92043
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.1599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.87549
  Prefactor  = 46.8124
  Prefactor  = 0.0001
  Prefactor  = 11.2929
  Prefactor  = 63.5665
  Prefactor  = 0.0001
  norm       = 4.85927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.685808
  Prefactor  = 1.07992
 **********
 **   18 **HESSE 
 **********

 FCN=   7041.204     FROM HESSE     STATUS=OK           368 CALLS     2873 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .89455        .98840        .90764E-03   -1.5519    
   3  norm          .10000E-03    3.8452        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.507        18.890        .11329E-03   -1.5001    
   5  norm          .10004E-03    5.3058        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    61.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9204        4.5269        .12897E-03   -1.5145    
   8  norm          .10000E-03    3.0113        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.3621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.160        23.586        .64883E-04   -1.4472    
  11  Prefactor     .10000E-03    15.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.8755        2.7160        .68865E-04   -1.5079    
  14  Prefactor     46.812        35.454        .58608E-04   -1.4339    
  15  Prefactor     .10000E-03    13.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.293        7.5483        .11922E-03   -1.5036    
  17  Prefactor     63.566        33.479        .50333E-04   -1.4112    
  18  Prefactor     .10000E-03    1.6875        .10605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8593        4.1455        .15010E-03   -1.5267    
  20  Prefactor     .10000E-03    19.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .68581        .26993        .42112E-03   -1.0446    
  23  Prefactor     1.0799        .13258        .17102E-03   -.90111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77205e-09
Minuit parameter uncertainties:
  1  1.0845e-06
  2  0.988417
  3  6.63653e-07
  4  18.8991
  5  0.000869718
  6  0.000142793
  7  4.52714
  8  1.76475e-06
  9  8.25659e-07
  10  23.5921
  11  1.87343e-07
  12  0.000256378
  13  2.71602
  14  35.47
  15  1.90015e-06
  16  7.54896
  17  33.4894
  18  3.22711e-06
  19  4.1457
  20  2.56326e-05
  21  6.62611e-06
  22  0.270457
  23  0.132621
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.873e-07  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.080e+00  1.326e-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:  6.858e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/148949/likelihoodResults_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.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) = 7041.20407748
delta logL = -0.000306910154904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7041.20377227
delta logL = -1.70124712895e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4449       1.0000          .0000       10.000    
     3 'Normalizat'    .68581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0799       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=   7041.204     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10333E-03    5.0480        .18142E-01** at limit **
   2  Index         2.3614        6.1460        .50000        .27490E-04
   3  Normalizat    .68581        .38145E-02    .42112E-03   -.12786E-03
   4  Prefactor     1.0799        .19222E-02    .17102E-03   -.42475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103329
  Index      = 2.36137
  Normalizat = 0.685811
  Prefactor  = 1.07992
 **********
 **   18 **HESSE 
 **********

 FCN=   7041.204     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10333E-03    49.509        .27733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3614        7.1766        .50000       -.55592    
   3  Normalizat    .68581        .11999E-01    .16845E-04   -1.0446    
   4  Prefactor     1.0799        .60463E-02    .34203E-04   -.90111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.63697e-09
Minuit parameter uncertainties:
  1  0.0256963
  2  182.948
  3  0.011999
  4  0.00604633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148949': 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) = 7041.20377185
delta logL = -1.27630119096e-06

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.033e-04  2.570e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.361e+00  1.829e+02  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.080e+00  6.046e-03  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:  6.858e-01  1.200e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/148949/cmap_HighResolution_303609601_303868801_4FGL_J2046.8-4258_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-09-25 18:14:58.813561', job_id='148949', GAL2='1.08', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632618898.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='248' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:14:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 148949: <4FGL_J2046.8-4258_daily_bin248> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin248> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 18:00:17 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:00:31 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:00:31 2021
Terminated at Sat Sep 25 18:14:59 2021
Results reported at Sat Sep 25 18:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin248 311.72 -42.9694 303609601 303868801 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 :                                   673.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            882 sec.

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

