/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7645
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1059
RA = 311.72, Dec = -42.9694
tmin = 513820801, tmax = 514080001
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='153572', job_status='RUN', time_executed='2021-09-25 18:18:47.259969', time_epoch_executed='1632619127.26' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153572/ft1_4FGL_J2046.8-4258_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153572/ft1_4FGL_J2046.8-4258_daily_bin1059.fits outfile=/scratch/kocevski/153572/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1059.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=513820801.0 tmax=514080001.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.91
user 3.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153572/ft1_filtered_4FGL_J2046.8-4258_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/153572/ltcube_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.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/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits
.....................!
real 14.85
user 14.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153572/ft1_filtered_4FGL_J2046.8-4258_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/153572/ltcube_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.fits outfile=/scratch/kocevski/153572/expmap_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.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/153572/ltcube_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.fits
.....................!
real 192.39
user 186.79
sys 4.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/153572/ft1_filtered_4FGL_J2046.8-4258_daily_bin1059.fits scfile=/scratch/kocevski/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits outfile=/scratch/kocevski/153572/cmap_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153572/ft1_filtered_4FGL_J2046.8-4258_daily_bin1059.fits scfile=/scratch/kocevski/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits outfile=/scratch/kocevski/153572/cmap_HighResolution_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153572/ft1_filtered_4FGL_J2046.8-4258_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/153572/ft2_4FGL_J2046.8-4258_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153572/Model_4FGL_J2046.8-4258_daily_bin1059.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/153572/ft1_filtered_4FGL_J2046.8-4258_daily_bin1059.fits....................!
real 61.84
user 60.29
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .60124E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    21.082       1.0000         .10000E-03   10000.    
     5 'norm      '    .84209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.330       1.0000         .10000E-03   10000.    
     7 'norm      '    .10424E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.449       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9841       1.0000         .10000E-03   10000.    
    19 'norm      '    9.9897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3011       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0162       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=   7572.447     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2634 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    53.922       -.66392E-05** at limit **
   2  norm          .60137E-01    .42108       -.10659E-07   -.14137E-03
   3  norm          .10000E-03    4.0189        .39460E-07** at limit **
   4  norm          21.082        19.791       -.31327E-07    .32802E-05
   5  norm          .84210        .83543       -.89029E-08    .10576E-03
   6  Prefactor     22.329        30.927       -.37266E-06   -.21134E-04
   7  norm          .10000E-03    2.0455        .15021E-07** at limit **
   8  norm          .10000E-03    2.9961       -.51422E-08** at limit **
   9  norm          3.8437        10.760        .34971E-05   -.57719E-03
  10  Prefactor     .10000E-03    12.981        .50916E-07** at limit **
  11  Prefactor     .10001E-03    42.493        .88079E-05** at limit **
  12  Prefactor     .10000E-03    13.099       -.71567E-06** at limit **
  13  norm          1.3627        2.1957        .17427E-06   -.32945E-03
  14  Prefactor     22.655        35.981       -.30051E-05   -.15176E-03
  15  Prefactor     .10000E-03    34.453       -.29921E-05** at limit **
  16  Prefactor     15.447        11.673       -.20928E-06   -.47837E-04
  17  Prefactor     .10000E-03    12.586        .11667E-05** at limit **
  18  Prefactor     2.9844        6.1208       -.12443E-08   -.20617E-03
  19  norm          9.9889        6.3432        .52777E-06   -.79437E-03
  20  Prefactor     .10000E-03    7.9538        .20002E-07** at limit **
  21  Prefactor     .10000E-03    11.128       -.42907E-06** at limit **
  22  Normalizat    1.3012        .25361        .28009E-06   -.12002E-04
  23  Prefactor     1.0161        .11506       -.15117E-06    .60895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 0.060137
  norm       = 0.0001
  norm       = 21.0817
  norm       = 0.842102
  Prefactor  = 22.3293
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.84372
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 1.36272
  Prefactor  = 22.6546
  Prefactor  = 0.000100002
  Prefactor  = 15.4473
  Prefactor  = 0.0001
  Prefactor  = 2.98443
  norm       = 9.98894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30122
  Prefactor  = 1.01613
 **********
 **   18 **HESSE 
 **********

 FCN=   7572.447     FROM HESSE     STATUS=OK           372 CALLS     3006 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    56.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .60137E-01    2.1075        .10855E-02   -1.5659    
   3  norm          .10000E-03    4.0399        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          21.082        19.706        .87234E-04   -1.4789    
   5  norm          .84210        .86206        .77229E-03   -1.5524    
   6  Prefactor     22.329        30.939        .84764E-04   -1.4763    
   7  norm          .10000E-03    3.9785        .23966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9997        .14710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8437        12.521        .10292E-02   -1.5316    
  10  Prefactor     .10000E-03    12.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    45.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3627        2.1967        .15345E-03   -1.5474    
  14  Prefactor     22.655        36.719        .84143E-04   -1.4756    
  15  Prefactor     .10000E-03    34.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.447        11.748        .10190E-03   -1.4922    
  17  Prefactor     .10000E-03    12.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9844        6.1696        .23502E-03   -1.5362    
  19  norm          9.9889        6.5458        .63390E-03   -1.5076    
  20  Prefactor     .10000E-03    7.9825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3012        .30460        .34658E-03   -.83530    
  23  Prefactor     1.0161        .13882        .18586E-03   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64167e-08
Minuit parameter uncertainties:
  1  0.00124934
  2  0.711448
  3  8.56637e-07
  4  19.7125
  5  0.862077
  6  30.9612
  7  1.39421e-05
  8  4.84011e-07
  9  12.5296
  10  1.61223e-06
  11  0.00164823
  12  7.69507e-05
  13  2.19685
  14  36.7556
  15  0.000494306
  16  11.7494
  17  0.000114219
  18  6.17093
  19  6.54628
  20  8.16087e-07
  21  4.27006e-05
  22  0.305017
  23  0.138872
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.648e-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:  1.016e+00  1.389e-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.301e+00  3.050e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153572/likelihoodResults_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.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) = 7572.44687743
delta logL = -0.000104833920886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7572.44677297
delta logL = -3.75192030333e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3986       1.0000          .0000       10.000    
     3 'Normalizat'    1.3012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   7572.447     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    203.30        .18142E-02** at limit **
   2  Index         2.3365        6.8120        .50000        .73370E-05
   3  Normalizat    1.3012        .14450E-01    .34658E-03    .65802E-04
   4  Prefactor     1.0161        .69954E-02    .18586E-03    .13565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101751
  Index      = 2.33651
  Normalizat = 1.30122
  Prefactor  = 1.01613
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10175E-03    879.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3365        5.0749        .50000       -.56179    
   3  Normalizat    1.3012        .31033E-01    .13863E-04   -.83530    
   4  Prefactor     1.0161        .15024E-01    .37171E-04   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.7178e-09
Minuit parameter uncertainties:
  1  0.0796543
  2  664.538
  3  0.0310339
  4  0.0150238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153572': 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) = 7572.44677287
delta logL = -2.81212123809e-07

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.018e-04  7.965e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.337e+00  6.645e+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.016e+00  1.502e-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.301e+00  3.103e-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/153572/cmap_HighResolution_513820801_514080001_4FGL_J2046.8-4258_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-25 18:30:53.391406', job_id='153572', GAL2='1.02', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632619853.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-2.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1059' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:30:53 PDT 2021


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

Job <4FGL_J2046.8-4258_daily_bin1059> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:15:44 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:18:20 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:18:20 2021
Terminated at Sat Sep 25 18:30:54 2021
Results reported at Sat Sep 25 18:30:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1059 311.72 -42.9694 513820801 514080001 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 :                                   722.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            910 sec.

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

