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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin282
RA = 311.72, Dec = -42.9694
tmin = 312422401, tmax = 312681601
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='149000', job_status='RUN', time_executed='2021-09-25 18:00:58.046389', time_epoch_executed='1632618058.05' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149000/ft1_4FGL_J2046.8-4258_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149000/ft1_4FGL_J2046.8-4258_daily_bin282.fits outfile=/scratch/kocevski/149000/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin282.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=312422401.0 tmax=312681601.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.88
user 3.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149000/ft1_filtered_4FGL_J2046.8-4258_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/149000/ltcube_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.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/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits
.....................!
real 14.89
user 14.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149000/ft1_filtered_4FGL_J2046.8-4258_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/149000/ltcube_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.fits outfile=/scratch/kocevski/149000/expmap_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.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/149000/ltcube_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.fits
.....................!
real 193.89
user 188.50
sys 4.98

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/149000/ft1_filtered_4FGL_J2046.8-4258_daily_bin282.fits scfile=/scratch/kocevski/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits outfile=/scratch/kocevski/149000/cmap_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149000/ft1_filtered_4FGL_J2046.8-4258_daily_bin282.fits scfile=/scratch/kocevski/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits outfile=/scratch/kocevski/149000/cmap_HighResolution_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149000/ft1_filtered_4FGL_J2046.8-4258_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/149000/ft2_4FGL_J2046.8-4258_daily_bin282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149000/Model_4FGL_J2046.8-4258_daily_bin282.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/149000/ft1_filtered_4FGL_J2046.8-4258_daily_bin282.fits.....................!
real 56.07
user 54.70
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .79587       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.583       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3250       1.0000         .10000E-03   10000.    
     8 'norm      '    20.899       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3509       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    117.10       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8449       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79443       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0961       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=   6834.429     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2545 TOTAL
                     EDM=   .49E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9552       -.49073E-06** at limit **
   2  norm          .79592        .76665        .16814E-07   -.10130E-04
   3  norm          .10000E-03    4.4157       -.21601E-06** at limit **
   4  norm          12.582        23.715       -.43326E-06    .98446E-05
   5  norm          2.3858        1.8869        .11030E-07   -.65804E-05
   6  Prefactor     .10000E-03    45.255        .17744E-05** at limit **
   7  norm          5.3251        5.1076        .13861E-05   -.14864E-04
   8  norm          20.899        14.867        .87657E-07   -.28316E-05
   9  norm          .10000E-03    8.8284        .10484E-05** at limit **
  10  Prefactor     11.890        30.164       -.12759E-05   -.22453E-04
  11  Prefactor     .10000E-03    30.023       -.11593E-05** at limit **
  12  Prefactor     .10000E-03    18.151        .15900E-05** at limit **
  13  norm          7.3509        2.8382        .14630E-07   -.55968E-04
  14  Prefactor     .10000E-03    12.418       -.11133E-05** at limit **
  15  Prefactor     .10000E-03    30.077       -.12454E-05** at limit **
  16  Prefactor     .10000E-03    3.1928       -.21991E-07** at limit **
  17  Prefactor     117.10        38.330        .15075E-06   -.35568E-06
  18  Prefactor     .10000E-03    1.7120       -.69471E-08** at limit **
  19  norm          .10000E-03    2.5485       -.56272E-07** at limit **
  20  Prefactor     .10000E-03    4.4803        .21374E-06** at limit **
  21  Prefactor     4.8444        8.5578        .17842E-05   -.14653E-04
  22  Normalizat    .79450        .25139       -.46223E-06   -.21495E-04
  23  Prefactor     1.0961        .11920       -.18861E-06   -.46983E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.795922
  norm       = 0.0001
  norm       = 12.5825
  norm       = 2.38581
  Prefactor  = 0.0001
  norm       = 5.32507
  norm       = 20.8995
  norm       = 0.0001
  Prefactor  = 11.89
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.35092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.1
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84445
  Normalizat = 0.794499
  Prefactor  = 1.09609
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.429     FROM HESSE     STATUS=OK           368 CALLS     2913 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .79592        .73385        .68895E-03   -1.5530    
   3  norm          .10000E-03    4.4494        .16959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.582        23.699        .11292E-03   -1.4998    
   5  norm          2.3858        1.8796        .97779E-04   -1.5399    
   6  Prefactor     .10000E-03    45.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3251        5.1059        .85873E-03   -1.5246    
   8  norm          20.899        14.868        .87614E-04   -1.4793    
   9  norm          .10000E-03    8.8765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.890        30.221        .11620E-03   -1.5018    
  11  Prefactor     .10000E-03    30.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3509        2.8431        .81190E-04   -1.5166    
  14  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2013        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     117.10        38.396        .37182E-04   -1.3539    
  18  Prefactor     .10000E-03    1.7200        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5750        .12880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4880        .17086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8444        8.5521        .91379E-03   -1.5268    
  22  Normalizat    .79450        .28230        .40891E-03   -1.0027    
  23  Prefactor     1.0961        .13498        .17438E-03   -.89592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94702e-10
Minuit parameter uncertainties:
  1  1.50555e-07
  2  0.73386
  3  5.35671e-07
  4  23.7167
  5  1.87968
  6  5.94574e-06
  7  5.10636
  8  14.8708
  9  2.24817e-05
  10  30.2601
  11  1.4095e-05
  12  2.38563e-05
  13  2.8432
  14  4.07978e-06
  15  6.17545e-07
  16  1.75469e-06
  17  38.404
  18  3.42297e-07
  19  4.49271e-06
  20  1.39988e-06
  21  8.55428
  22  0.282824
  23  0.135021
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.409e-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.096e+00  1.350e-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:  7.945e-01  2.828e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149000/likelihoodResults_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.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) = 6834.42945268
delta logL = -0.000158701916916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6834.42929393
delta logL = 4.2280589696e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0616       1.0000          .0000       10.000    
     3 'Normalizat'    .79451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0961       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=   6834.429     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6979.9        .90712E-02** at limit **
   2  Index         2.0530        5.5559        .50000        .22016E-05
   3  Normalizat    .79450        .95824E-01    .92304E-01    .31112E-04
   4  Prefactor     1.0961        .47549E-01    .37737E-01   -.20393E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05302
  Normalizat = 0.794499
  Prefactor  = 1.09609
 **********
 **   18 **HESSE 
 **********

 FCN=   6834.429     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0530        5.4324        .50000       -.63031    
   3  Normalizat    .79450        .26548        .40891E-03   -1.0027    
   4  Prefactor     1.0961        .13230        .17438E-03   -.89592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04312e-11
Minuit parameter uncertainties:
  1  3.16251e-05
  2  6.64171
  3  0.265916
  4  0.132337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149000': 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) = 6834.42929393
delta logL = 4.90954334964e-08

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.163e-05  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.053e+00  6.642e+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:  1.096e+00  1.323e-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:  7.945e-01  2.659e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/149000/cmap_HighResolution_312422401_312681601_4FGL_J2046.8-4258_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-25 18:12:17.184420', job_id='149000', GAL2='1.10', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632618737.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='282' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:12:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 149000: <4FGL_J2046.8-4258_daily_bin282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin282 311.72 -42.9694 312422401 312681601 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 :                                   677.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            718 sec.

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

