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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1036
RA = 311.72, Dec = -42.9694
tmin = 507859201, tmax = 508118401
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='153534', job_status='RUN', time_executed='2021-09-25 18:18:06.760082', time_epoch_executed='1632619086.76' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153534/ft1_4FGL_J2046.8-4258_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153534/ft2_4FGL_J2046.8-4258_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153534/ft1_4FGL_J2046.8-4258_daily_bin1036.fits outfile=/scratch/kocevski/153534/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1036.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=507859201.0 tmax=508118401.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 4.30
user 3.95
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153534/ft1_filtered_4FGL_J2046.8-4258_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/153534/ft2_4FGL_J2046.8-4258_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/153534/ltcube_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.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/153534/ft2_4FGL_J2046.8-4258_daily_bin1036.fits
.....................!
real 14.95
user 14.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153534/ft1_filtered_4FGL_J2046.8-4258_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/153534/ft2_4FGL_J2046.8-4258_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/153534/ltcube_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.fits outfile=/scratch/kocevski/153534/expmap_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.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/153534/ltcube_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.fits
.....................!
real 191.48
user 185.77
sys 4.12

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/153534/ft1_filtered_4FGL_J2046.8-4258_daily_bin1036.fits scfile=/scratch/kocevski/153534/ft2_4FGL_J2046.8-4258_daily_bin1036.fits outfile=/scratch/kocevski/153534/cmap_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=311.72 yref=-42.9694 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153534/ft1_filtered_4FGL_J2046.8-4258_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/153534/ft2_4FGL_J2046.8-4258_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153534/Model_4FGL_J2046.8-4258_daily_bin1036.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/153534/ft1_filtered_4FGL_J2046.8-4258_daily_bin1036.fits.....................!
real 77.94
user 76.26
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7203       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8336       1.0000         .10000E-03   10000.    
     3 'norm      '    .11595E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .17348       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6297       1.0000         .10000E-03   10000.    
     8 'norm      '    15.495       1.0000         .10000E-03   10000.    
     9 'norm      '    5.7813       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .52026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.084       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7247       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0247       1.0000         .10000E-03   10000.    
    19 'norm      '    15.484       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29493       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6951       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83964       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0648       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=   10540.65     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2211 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7192        13.593       -.71273E-07   -.11180E-04
   2  norm          1.8335        .79836       -.15988E-07    .16697E-04
   3  norm          .10000E-03    2.8677        .41103E-07** at limit **
   4  norm          .10000E-03    6.3003       -.56840E-05** at limit **
   5  norm          .17345        .86381       -.90696E-08   -.40691E-03
   6  Prefactor     .10000E-03    14.030       -.44263E-05** at limit **
   7  norm          2.6297        2.3390       -.28835E-07    .24777E-04
   8  norm          15.495        8.1070       -.77413E-07    .49746E-05
   9  norm          5.7769        12.808       -.36726E-06   -.21082E-04
  10  Prefactor     .10000E-03    16.321        .51912E-05** at limit **
  11  Prefactor     .10000E-03    31.011       -.18878E-05** at limit **
  12  Prefactor     .10000E-03    4.4246        .72432E-07** at limit **
  13  norm          .52005        1.0838       -.42502E-07   -.17346E-03
  14  Prefactor     34.082        21.440       -.11954E-05    .23644E-05
  15  Prefactor     14.652        31.378       -.17646E-04   -.15624E-04
  16  Prefactor     1.7242        1.6954        .30445E-06   -.20570E-02
  17  Prefactor     .10000E-03    6.3991        .57765E-05** at limit **
  18  Prefactor     7.0251        3.7520        .97105E-07    .71469E-05
  19  norm          15.485        5.0276        .23280E-06   -.40195E-04
  20  Prefactor     .30160        3.8065       -.37800E-06    .12446E-03
  21  Prefactor     6.6936        9.3321        .98226E-07   -.24733E-03
  22  Normalizat    .83950        .18505        .47276E-06    .64011E-04
  23  Prefactor     1.0649        .92137E-01    .17877E-06    .93886E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.71918
  norm       = 1.83354
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.17345
  Prefactor  = 0.0001
  norm       = 2.6297
  norm       = 15.4945
  norm       = 5.7769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.520048
  Prefactor  = 34.0823
  Prefactor  = 14.6521
  Prefactor  = 1.72425
  Prefactor  = 0.0001
  Prefactor  = 7.02508
  norm       = 15.4847
  Prefactor  = 0.301604
  Prefactor  = 6.69361
  Normalizat = 0.839502
  Prefactor  = 1.06487
 **********
 **   18 **HESSE 
 **********

 FCN=   10540.65     FROM HESSE     STATUS=OK           378 CALLS     2589 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7192        13.609        .24692E-03   -1.5378    
   2  norm          1.8335        .79402        .58230E-04   -1.5437    
   3  norm          .10000E-03    12.679        .33652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.3250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .17345        .89621        .18594E-03   -1.5625    
   6  Prefactor     .10000E-03    14.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6297        2.3299        .14343E-03   -1.5384    
   8  norm          15.495        8.1109        .10175E-03   -1.4921    
   9  norm          5.7769        12.811        .16704E-03   -1.5227    
  10  Prefactor     .10000E-03    16.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .52005        1.0848        .14502E-03   -1.5564    
  14  Prefactor     34.082        21.452        .68640E-04   -1.4540    
  15  Prefactor     14.652        31.410        .10460E-03   -1.4942    
  16  Prefactor     1.7242        5.5667        .15989E-02   -1.5445    
  17  Prefactor     .10000E-03    6.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0251        3.7582        .14056E-03   -1.5178    
  19  norm          15.485        5.0302        .10178E-03   -1.4921    
  20  Prefactor     .30160        32.177        .37741E-02   -1.5598    
  21  Prefactor     6.6936        9.4162        .77539E-03   -1.5190    
  22  Normalizat    .83950        .21436        .36788E-03   -.98620    
  23  Prefactor     1.0649        .10717        .16786E-03   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19705e-09
Minuit parameter uncertainties:
  1  12.1705
  2  0.794021
  3  9.13965e-05
  4  6.71065e-06
  5  0.788327
  6  1.24754e-05
  7  2.32997
  8  8.11147
  9  12.8172
  10  1.52802e-06
  11  1.48789e-05
  12  3.81331e-06
  13  1.08486
  14  21.4573
  15  31.4457
  16  5.56839
  17  3.63346e-06
  18  3.75837
  19  5.0303
  20  6.23286
  21  9.41829
  22  0.214572
  23  0.107193
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.065e+00  1.072e-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:  8.395e-01  2.146e-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: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153534/likelihoodResults_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.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) = 10540.6493992
delta logL = -0.000153409806444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10540.6492462
delta logL = -4.39775249106e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3118       1.0000          .0000       10.000    
     3 'Normalizat'    .83950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0649       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=   10540.65     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.937        .90712E-02** at limit **
   2  Index         2.2797        6.2774        .50000        .96429E-05
   3  Normalizat    .83950        .36994E-02    .83087E-01    .36248E-04
   4  Prefactor     1.0649        .18888E-02    .39108E-01    .59201E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.27968
  Normalizat = 0.839501
  Prefactor  = 1.06487
 **********
 **   18 **HESSE 
 **********

 FCN=   10540.65     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    104.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2797        8.0098        .50000       -.57527    
   3  Normalizat    .83950        .89245E-02    .36788E-03   -.98620    
   4  Prefactor     1.0649        .45671E-02    .16786E-03   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02447e-07
Minuit parameter uncertainties:
  1  0.00166612
  2  152.719
  3  0.00892451
  4  0.00456711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153534': 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) = 10540.649246
delta logL = -2.51733581536e-07

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.666e-03  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.280e+00  1.527e+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.065e+00  4.567e-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:  8.395e-01  8.925e-03  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/153534/cmap_HighResolution_507859201_508118401_4FGL_J2046.8-4258_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-25 18:32:11.549149', job_id='153534', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632619931.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1036' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:32:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 153534: <4FGL_J2046.8-4258_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1036 311.72 -42.9694 507859201 508118401 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 :                                   840.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            992 sec.

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

