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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1204
RA = 311.72, Dec = -42.9694
tmin = 551404801, tmax = 551664001
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='153778', job_status='RUN', time_executed='2021-09-25 18:22:12.731220', time_epoch_executed='1632619332.73' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153778/ft1_4FGL_J2046.8-4258_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153778/ft1_4FGL_J2046.8-4258_daily_bin1204.fits outfile=/scratch/kocevski/153778/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1204.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=551404801.0 tmax=551664001.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.63
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153778/ft1_filtered_4FGL_J2046.8-4258_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/153778/ltcube_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.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/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits
.....................!
real 15.16
user 14.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153778/ft1_filtered_4FGL_J2046.8-4258_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/153778/ltcube_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.fits outfile=/scratch/kocevski/153778/expmap_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.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/153778/ltcube_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.fits
.....................!
real 191.83
user 186.74
sys 4.68

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/153778/ft1_filtered_4FGL_J2046.8-4258_daily_bin1204.fits scfile=/scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits outfile=/scratch/kocevski/153778/cmap_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153778/ft1_filtered_4FGL_J2046.8-4258_daily_bin1204.fits scfile=/scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits outfile=/scratch/kocevski/153778/cmap_HighResolution_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.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.60
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153778/ft1_filtered_4FGL_J2046.8-4258_daily_bin1204.fits', '/scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits', expMap='/scratch/kocevski/153778/expmap_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.fits', expCube='/scratch/kocevski/153778/ltcube_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153778/Model_4FGL_J2046.8-4258_daily_bin1204.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/153778/ft1_filtered_4FGL_J2046.8-4258_daily_bin1204.fits
Spacecraft file(s): /scratch/kocevski/153778/ft2_4FGL_J2046.8-4258_daily_bin1204.fits
Exposure map: /scratch/kocevski/153778/expmap_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.fits
Exposure cube: /scratch/kocevski/153778/ltcube_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153778/Model_4FGL_J2046.8-4258_daily_bin1204.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 516.112793538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 514.918507326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18095E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3423       1.0000         .10000E-03   10000.    
     3 'norm      '    .28577E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .24108       1.0000         .10000E-03   10000.    
     5 'norm      '    8.3511       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15047E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.694       1.0000         .10000E-03   10000.    
     8 'norm      '    .18687E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10550E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.052       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6660       1.0000         .10000E-03   10000.    
    13 'norm      '    .24306E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2579       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7942       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16015       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6391       1.0000         .10000E-03   10000.    
    19 'norm      '    .19968E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76130E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    104.23       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86016       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   514.9096     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      501 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.381        .90712E-02** at limit **
   2  norm          4.3495        3.4053        .48325E-02   -.25118E-01
   3  norm          .10000E-03    34.681        .91650E-02** at limit **
   4  norm          .10088E-03    125.22        .10164E-01** at limit **
   5  norm          13.105        74.102        .34681E-02    .61141E-02
   6  Prefactor     .10937E-03    93.065        .90712E-02** at limit **
   7  norm          27.140        42.286        .18698E-02    .81606E-03
   8  norm          .22539        63.168        .56048E-01    .63729    
   9  norm          .19200E-03    166.48        .10363E-01** at limit **
  10  Prefactor     77.660        164.33        .11364E-02    .54678E-02
  11  Prefactor     .13739E-03    445.67        .72598E-02** at limit **
  12  Prefactor     1.6660        1.0541         .0000         .0000    
  13  norm          .10000E-03    .20903       -.11891E-05** at limit **
  14  Prefactor     8.6251        1.0804       -.52343E-05   -.18415E-02
  15  Prefactor     5.2579        1.0046         .0000         .0000    
  16  Prefactor     .16743E-03    .15230        .14623E-05** at limit **
  17  Prefactor     .10011E-03    .23981        .36573E-05** at limit **
  18  Prefactor     2.6391        1.0192         .0000         .0000    
  19  norm          .10013E-03    .20805        .57737E-06** at limit **
  20  Prefactor     .10002E-03    .22075        .32518E-05** at limit **
  21  Prefactor     104.49        1.0012       -.10637E-05   -.14185E-01
  22  Normalizat    .10000E-01    .25505       -.27662E-05** at limit **
  23  Prefactor     .85830        1.2056        .11548E-05   -.75227E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.34947
  norm       = 0.000100001
  norm       = 0.000100881
  norm       = 13.105
  Prefactor  = 0.000109373
  norm       = 27.1402
  norm       = 0.225394
  norm       = 0.000192004
  Prefactor  = 77.6605
  Prefactor  = 0.000137393
  Prefactor  = 1.66603
  norm       = 0.0001
  Prefactor  = 8.62509
  Prefactor  = 5.2579
  Prefactor  = 0.000167431
  Prefactor  = 0.000100114
  Prefactor  = 2.63906
  norm       = 0.000100131
  Prefactor  = 0.000100022
  Prefactor  = 104.488
  Normalizat = 0.01
  Prefactor  = 0.858298
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   514.9096     FROM HESSE     STATUS=FAILED        31 CALLS      532 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    44.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3495        3.4053        .48325E-02   -1.5291    
   3  norm          .10000E-03    34.681        .91650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10088E-03    125.22        .10164E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.105        74.102        .34681E-02   -1.4984    
   6  Prefactor     .10937E-03    93.065        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          27.140        42.286        .18698E-02   -1.4666    
   8  norm          .22539        63.168        .56048E-01   -1.5613    
   9  norm          .19200E-03    166.48        .10363E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     77.660        164.33        .11364E-02   -1.3943    
  11  Prefactor     .13739E-03    445.67        .72598E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     574.73        572.89         .0000       -1.5450    
  13  norm          .10000E-03    .20903       -.11891E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6251        1.0804       -.52343E-05   -1.5121    
  15  Prefactor     5.2579        1.0046         .0000       -1.5249    
  16  Prefactor     .16743E-03    .15230        .14623E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-03    .23981        .36573E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6391        1.0192         .0000       -1.5383    
  19  norm          .10013E-03    .20805        .57737E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    .22075        .32518E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     104.49        1.0012       -.10637E-05   -1.3660    
  22  Normalizat    .10000E-01    .25505       -.27662E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .85830        1.2056        .11548E-05   -.97614    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.40622e-09
Minuit parameter uncertainties:
  1  0.000230505
  2  3.40541
  3  0.000447987
  4  0.0210549
  5  62.4436
  6  0.0591603
  7  42.3324
  8  7.55294
  9  0.248212
  10  165.304
  11  0.260144
  12  1.05415
  13  6.3232e-06
  14  1.08041
  15  1.00459
  16  0.00640921
  17  0.000330721
  18  1.01918
  19  0.000329626
  20  0.000137875
  21  1.00121
  22  1.04469e-06
  23  1.24637
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 514.909633974

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.374e-04  2.601e-01  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:  8.583e-01  1.246e+00  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.000e-02  1.045e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153778/likelihoodResults_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.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) = 514.909645542
delta logL = -1.15675378538e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 514.909653555
delta logL = -1.95808222543e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96213E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1344       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85832       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=   514.9096     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    672.22        .90727E-02** at limit **
   2  Index         2.1065        8.5250        .50000        .48300E-06
   3  Normalizat    .10000E-01    .11836E-02    .22681    ** at limit **
   4  Prefactor     .85830        .91279E-02    .30090E-01   -.11787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.10646
  Normalizat = 0.01
  Prefactor  = 0.858299
 **********
 **   18 **HESSE 
 **********

 FCN=   514.9096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6515.0        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1065        8.9352        .50000       -.61714    
   3  Normalizat    .10000E-01    .75690E-02    .88847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85830        .20408E-01    .13299E-03   -.97614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.26026e-08
Minuit parameter uncertainties:
  1  0.00615252
  2  1579.96
  3  6.61687e-08
  4  0.0204083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153778': 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) = 514.909633929
delta logL = 4.47346337751e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.583e-01  2.041e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.000e-02  6.617e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/153778/cmap_HighResolution_551404801_551664001_4FGL_J2046.8-4258_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-02', job_status='DONE', photon_flux_upper_limit='1.13e-06', time_completed='2021-09-25 18:27:44.462914', job_id='153778', GAL2='0.86', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632619664.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.86', dlogl='4.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1204' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 153778: <4FGL_J2046.8-4258_daily_bin1204> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1204> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 25 18:16:05 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:20:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 18:20:21 2021
Terminated at Sat Sep 25 18:27:45 2021
Results reported at Sat Sep 25 18:27:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1204 311.72 -42.9694 551404801 551664001 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 :                                   330.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             428.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   443 sec.
    Turnaround time :                            700 sec.

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

