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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1396
RA = 311.72, Dec = -42.9694
tmin = 601171201, tmax = 601430401
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='154993', job_status='RUN', time_executed='2021-09-25 18:24:51.449814', time_epoch_executed='1632619491.45' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154993

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154993/ft1_4FGL_J2046.8-4258_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154993/ft1_4FGL_J2046.8-4258_daily_bin1396.fits outfile=/scratch/kocevski/154993/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1396.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=601171201.0 tmax=601430401.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.72
user 3.45
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154993/ft1_filtered_4FGL_J2046.8-4258_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/154993/ltcube_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.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/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits
.....................!
real 14.30
user 13.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154993/ft1_filtered_4FGL_J2046.8-4258_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/154993/ltcube_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.fits outfile=/scratch/kocevski/154993/expmap_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.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/154993/ltcube_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.fits
.....................!
real 193.02
user 187.39
sys 3.88

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/154993/ft1_filtered_4FGL_J2046.8-4258_daily_bin1396.fits scfile=/scratch/kocevski/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits outfile=/scratch/kocevski/154993/cmap_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154993/ft1_filtered_4FGL_J2046.8-4258_daily_bin1396.fits scfile=/scratch/kocevski/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits outfile=/scratch/kocevski/154993/cmap_HighResolution_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/154993/ft1_filtered_4FGL_J2046.8-4258_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/154993/ft2_4FGL_J2046.8-4258_daily_bin1396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154993/Model_4FGL_J2046.8-4258_daily_bin1396.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/154993/ft1_filtered_4FGL_J2046.8-4258_daily_bin1396.fits.....................!
real 62.58
user 60.86
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0664       1.0000         .10000E-03   10000.    
     3 'norm      '    9.9938       1.0000         .10000E-03   10000.    
     4 'norm      '    .50371       1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6873       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .35028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.457       1.0000         .10000E-03   10000.    
    13 'norm      '    7.3094       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.287       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7852       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94470       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=   7303.723     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2616 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.835       -.13446E-04** at limit **
   2  norm          3.0660        1.4641        .60519E-07   -.83226E-04
   3  norm          10.031        11.598        .11198E-05    .37813E-04
   4  norm          .13746E-03    24.032       -.16659E-05** at limit **
   5  norm          .10000E-03    1.3993        .35619E-07** at limit **
   6  Prefactor     .10000E-03    69.803        .30582E-05** at limit **
   7  norm          3.6935        3.7061       -.26265E-06    .90030E-04
   8  norm          .10000E-03    15.561       -.34586E-06** at limit **
   9  norm          .10015E-03    66.110       -.42500E-04** at limit **
  10  Prefactor     18.331        36.104        .50769E-04   -.14269E-03
  11  Prefactor     .10000E-03    29.860        .14458E-04** at limit **
  12  Prefactor     24.443        23.675        .40337E-05   -.12531E-03
  13  norm          7.3082        2.7161       -.21921E-06   -.22649E-02
  14  Prefactor     20.269        35.189       -.16678E-05    .19207E-04
  15  Prefactor     .10000E-03    16.560        .68582E-06** at limit **
  16  Prefactor     6.8373        10.537        .19797E-05   -.16793E-03
  17  Prefactor     14.276        29.215       -.33999E-05    .26902E-04
  18  Prefactor     .10000E-03    6.0448        .16124E-06** at limit **
  19  norm          15.135        6.7023        .25989E-06   -.24990E-04
  20  Prefactor     .10000E-03    5.7530       -.10935E-07** at limit **
  21  Prefactor     .10000E-03    3.5769        .38779E-07** at limit **
  22  Normalizat    1.7859        .28329       -.33693E-05    .23244E-03
  23  Prefactor     .94469        .12727       -.60781E-06    .26904E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 3.06603
  norm       = 10.0308
  norm       = 0.00013746
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69351
  norm       = 0.0001
  norm       = 0.000100151
  Prefactor  = 18.3315
  Prefactor  = 0.000100004
  Prefactor  = 24.4425
  norm       = 7.30819
  Prefactor  = 20.2685
  Prefactor  = 0.0001
  Prefactor  = 6.83731
  Prefactor  = 14.2757
  Prefactor  = 0.0001
  norm       = 15.1348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78593
  Prefactor  = 0.944689
 **********
 **   18 **HESSE 
 **********

 FCN=   7303.723     FROM HESSE     STATUS=OK           372 CALLS     2988 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0660        1.4638        .68515E-04   -1.5358    
   3  norm          10.031        11.605        .12675E-03   -1.5074    
   4  norm          .13746E-03    33.983        .10478       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4501        .19730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6935        3.7060        .15837E-03   -1.5324    
   8  norm          .10000E-03    15.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10015E-03    71.172        .42646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.331        36.339        .93439E-04   -1.4851    
  11  Prefactor     .10000E-03    29.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.443        23.736        .81000E-04   -1.4719    
  13  norm          7.3082        2.7282        .41111E-03   -1.5167    
  14  Prefactor     20.269        35.245        .88881E-04   -1.4807    
  15  Prefactor     .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8373        10.629        .15334E-03   -1.5185    
  17  Prefactor     14.276        29.204        .10597E-03   -1.4952    
  18  Prefactor     .10000E-03    6.2825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.135        6.7014        .10295E-03   -1.4930    
  20  Prefactor     .10000E-03    5.7644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5814        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7859        .33806        .34645E-03   -.70031    
  23  Prefactor     .94469        .15097        .21368E-03   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46974e-09
Minuit parameter uncertainties:
  1  0.000544659
  2  1.46383
  3  11.6073
  4  0.0713982
  5  8.89892e-06
  6  0.00021826
  7  3.70625
  8  6.02818e-05
  9  0.00656072
  10  36.383
  11  0.000674251
  12  23.7452
  13  2.72829
  14  35.281
  15  1.97469e-05
  16  10.6315
  17  29.2333
  18  2.53069e-05
  19  6.70173
  20  1.06351e-05
  21  3.98274e-06
  22  0.338505
  23  0.151037
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  6.743e-04  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.447e-01  1.510e-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.786e+00  3.385e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154993/likelihoodResults_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.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) = 7303.72337384
delta logL = -0.000160039312505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7303.72321376
delta logL = 4.11537257605e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0610       1.0000          .0000       10.000    
     3 'Normalizat'    1.7859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94469       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=   7303.723     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7115.5        .90712E-02** at limit **
   2  Index         2.0523        5.5251        .50000        .22517E-05
   3  Normalizat    1.7859        .12109        .78293E-01    .55260E-05
   4  Prefactor     .94469        .57216E-01    .45572E-01    .10177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05234
  Normalizat = 1.78593
  Prefactor  = 0.944689
 **********
 **   18 **HESSE 
 **********

 FCN=   7303.723     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0523        5.8761        .50000       -.63048    
   3  Normalizat    1.7859        .30915        .34645E-03   -.70032    
   4  Prefactor     .94469        .14630        .21368E-03   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81961e-12
Minuit parameter uncertainties:
  1  3.12905e-05
  2  5.20419
  3  0.309486
  4  0.146361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154993': 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) = 7303.72321375
delta logL = 4.98057488585e-08

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.129e-05  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.052e+00  5.204e+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:  9.447e-01  1.464e-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.786e+00  3.095e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/154993/cmap_HighResolution_601171201_601430401_4FGL_J2046.8-4258_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-25 18:36:47.042099', job_id='154993', GAL2='0.94', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1632620207.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1396' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:36:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 154993: <4FGL_J2046.8-4258_daily_bin1396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1396 311.72 -42.9694 601171201 601430401 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 :                                   707.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            983 sec.

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

