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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin989
RA = 311.72, Dec = -42.9694
tmin = 495676801, tmax = 495936001
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='153460', job_status='RUN', time_executed='2021-09-25 18:17:28.372766', time_epoch_executed='1632619048.37' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='989'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153460/ft1_4FGL_J2046.8-4258_daily_bin989.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153460/ft2_4FGL_J2046.8-4258_daily_bin989.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153460/ft1_4FGL_J2046.8-4258_daily_bin989.fits outfile=/scratch/kocevski/153460/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin989.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=495676801.0 tmax=495936001.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.55
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153460/ft1_filtered_4FGL_J2046.8-4258_daily_bin989.fits" evtable="EVENTS" scfile=/scratch/kocevski/153460/ft2_4FGL_J2046.8-4258_daily_bin989.fits sctable="SC_DATA" outfile=/scratch/kocevski/153460/ltcube_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.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/153460/ft2_4FGL_J2046.8-4258_daily_bin989.fits
.....................!
real 14.17
user 13.83
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153460/ft1_filtered_4FGL_J2046.8-4258_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/153460/ft2_4FGL_J2046.8-4258_daily_bin989.fits sctable="SC_DATA" expcube=/scratch/kocevski/153460/ltcube_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.fits outfile=/scratch/kocevski/153460/expmap_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.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/153460/ltcube_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.fits
.....................!
real 190.48
user 186.09
sys 3.92

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/153460/ft1_filtered_4FGL_J2046.8-4258_daily_bin989.fits scfile=/scratch/kocevski/153460/ft2_4FGL_J2046.8-4258_daily_bin989.fits outfile=/scratch/kocevski/153460/cmap_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.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.36
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153460/ft1_filtered_4FGL_J2046.8-4258_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/153460/ft2_4FGL_J2046.8-4258_daily_bin989.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153460/Model_4FGL_J2046.8-4258_daily_bin989.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/153460/ft1_filtered_4FGL_J2046.8-4258_daily_bin989.fits.....................!
real 54.42
user 52.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0618       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    24.980       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8139       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12365E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.5922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.811       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.075       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2405       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90393       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=   6381.413     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2522 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.403        .94710E-05** at limit **
   2  norm          1.0620        1.0362       -.12092E-06   -.65006E-03
   3  norm          .10000E-03    2.8746        .16185E-07** at limit **
   4  norm          24.981        18.612       -.32547E-07    .95227E-05
   5  norm          1.8224        1.5734       -.73655E-07   -.69410E-04
   6  Prefactor     .10000E-03    60.523        .36335E-04** at limit **
   7  norm          3.8138        4.3291        .68487E-06   -.25811E-03
   8  norm          .10000E-03    5.6361       -.43496E-07** at limit **
   9  norm          .10000E-03    12.588        .12177E-05** at limit **
  10  Prefactor     48.344        34.813       -.21704E-04    .63901E-04
  11  Prefactor     .10001E-03    170.70       -.83191E-04** at limit **
  12  Prefactor     .10000E-03    15.158       -.17924E-05** at limit **
  13  norm          7.5915        2.7418       -.21855E-06   -.20864E-02
  14  Prefactor     .10000E-03    42.468       -.21435E-04** at limit **
  15  Prefactor     .10000E-03    25.010       -.58899E-05** at limit **
  16  Prefactor     9.0869        11.095       -.68045E-06   -.52422E-04
  17  Prefactor     22.015        30.879        .19660E-05    .91312E-05
  18  Prefactor     13.813        7.3208       -.59134E-06   -.26400E-04
  19  norm          4.6238        4.6701        .13591E-05   -.47261E-04
  20  Prefactor     19.077        14.501       -.21263E-06    .17130E-04
  21  Prefactor     .10000E-03    4.6469       -.39748E-07** at limit **
  22  Normalizat    1.2404        .26148        .14884E-05    .12215E-03
  23  Prefactor     .90385        .11832        .79626E-06    .19363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.06203
  norm       = 0.0001
  norm       = 24.9815
  norm       = 1.8224
  Prefactor  = 0.0001
  norm       = 3.81377
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 48.3435
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 7.59151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.08687
  Prefactor  = 22.0152
  Prefactor  = 13.8133
  norm       = 4.62375
  Prefactor  = 19.0772
  Prefactor  = 0.0001
  Normalizat = 1.24037
  Prefactor  = 0.903855
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.413     FROM HESSE     STATUS=OK           368 CALLS     2890 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0620        1.0141        .77138E-04   -1.5502    
   3  norm          .10000E-03    2.8779        .13227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          24.981        18.611        .80148E-04   -1.4708    
   5  norm          1.8224        1.5680        .90385E-04   -1.5438    
   6  Prefactor     .10000E-03    60.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8138        4.3167        .16938E-03   -1.5317    
   8  norm          .10000E-03    5.6476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.344        34.768        .57649E-04   -1.4316    
  11  Prefactor     .10001E-03    170.36        .20616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.5915        2.7506        .37979E-03   -1.5157    
  14  Prefactor     .10000E-03    42.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.0869        11.150        .13296E-03   -1.5105    
  17  Prefactor     22.015        30.907        .85375E-04   -1.4769    
  18  Prefactor     13.813        7.3463        .10778E-03   -1.4964    
  19  norm          4.6238        4.6652        .16652E-03   -1.5278    
  20  Prefactor     19.077        14.518        .91706E-04   -1.4834    
  21  Prefactor     .10000E-03    4.6544        .16816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2404        .31014        .34907E-03   -.85364    
  23  Prefactor     .90385        .14015        .18956E-03   -.96007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70134e-10
Minuit parameter uncertainties:
  1  2.88938e-05
  2  1.01415
  3  1.21119e-06
  4  18.6149
  5  1.56801
  6  3.11799e-05
  7  4.31708
  8  5.30086e-06
  9  0.000234298
  10  34.7821
  11  0.00215543
  12  1.32256e-05
  13  2.75066
  14  3.99984e-06
  15  2.84439e-06
  16  11.1521
  17  30.9293
  18  7.34678
  19  4.66556
  20  14.5207
  21  7.73901e-06
  22  0.310601
  23  0.14021
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.039e-01  1.402e-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.240e+00  3.106e-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: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153460/likelihoodResults_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.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) = 6381.4134717
delta logL = -2.78287179754e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6381.4134717
delta logL = -2.78281486317e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1344       1.0000          .0000       10.000    
     3 'Normalizat'    1.2404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90385       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=   6381.413     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      206 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    148.75        .90712E-02** at limit **
   2  Index         2.0696        5.0065        .50000        .23678E-05
   3  Normalizat    1.2404        .56739E-02    .78859E-01   -.25965E-03
   4  Prefactor     .90386        .26911E-02    .45054E-01   -.11888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.06956
  Normalizat = 1.24037
  Prefactor  = 0.903857
 **********
 **   18 **HESSE 
 **********

 FCN=   6381.413     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      235 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1048.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0696        5.8897        .50000       -.62622    
   3  Normalizat    1.2404        .15301E-01    .34907E-03   -.85364    
   4  Prefactor     .90386        .72668E-02    .18956E-03   -.96006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24223e-07
Minuit parameter uncertainties:
  1  0.00309041
  2  616.126
  3  0.0153006
  4  0.00726679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153460': 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) = 6381.41344383
delta logL = 4.35511537944e-08

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.090e-03  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.070e+00  6.161e+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:  9.039e-01  7.267e-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:  1.240e+00  1.530e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/153460/cmap_HighResolution_495676801_495936001_4FGL_J2046.8-4258_daily_bin989.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-09-25 18:28:12.446695', job_id='153460', GAL2='0.90', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632619692.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='989' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:28:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 153460: <4FGL_J2046.8-4258_daily_bin989> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin989> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:15:34 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:17:15 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:17:15 2021
Terminated at Sat Sep 25 18:28:13 2021
Results reported at Sat Sep 25 18:28:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin989 311.72 -42.9694 495676801 495936001 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 :                                   642.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            759 sec.

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

