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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1349
RA = 311.72, Dec = -42.9694
tmin = 588988801, tmax = 589248001
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='154924', job_status='RUN', time_executed='2021-09-25 18:26:06.144429', time_epoch_executed='1632619566.14' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154924

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154924/ft1_4FGL_J2046.8-4258_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154924/ft2_4FGL_J2046.8-4258_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154924/ft1_4FGL_J2046.8-4258_daily_bin1349.fits outfile=/scratch/kocevski/154924/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1349.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=588988801.0 tmax=589248001.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.27
user 2.92
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154924/ft1_filtered_4FGL_J2046.8-4258_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/154924/ft2_4FGL_J2046.8-4258_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/154924/ltcube_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.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/154924/ft2_4FGL_J2046.8-4258_daily_bin1349.fits
.....................!
real 15.34
user 14.90
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154924/ft1_filtered_4FGL_J2046.8-4258_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/154924/ft2_4FGL_J2046.8-4258_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/154924/ltcube_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.fits outfile=/scratch/kocevski/154924/expmap_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.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/154924/ltcube_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.fits
.....................!
real 194.97
user 187.83
sys 5.78

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/154924/ft1_filtered_4FGL_J2046.8-4258_daily_bin1349.fits scfile=/scratch/kocevski/154924/ft2_4FGL_J2046.8-4258_daily_bin1349.fits outfile=/scratch/kocevski/154924/cmap_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.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.58
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3139       1.0000         .10000E-03   10000.    
     3 'norm      '    15.967       1.0000         .10000E-03   10000.    
     4 'norm      '    64.964       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    165.89       1.0000         .10000E-03   10000.    
     7 'norm      '    .90526       1.0000         .10000E-03   10000.    
     8 'norm      '    50.723       1.0000         .10000E-03   10000.    
     9 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    91.747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.178       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30718E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    104.07       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9980       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66311       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=   2644.412     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2477 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.755       -.15864E-05** at limit **
   2  norm          1.3137        1.6698        .13798E-06   -.27725E-03
   3  norm          15.964        17.709       -.91441E-07   -.46102E-03
   4  norm          64.964        44.605        .12037E-05    .33600E-05
   5  norm          .10000E-03    1.8768        .10253E-06** at limit **
   6  Prefactor     165.90        132.87        .70333E-05   -.16737E-05
   7  norm          .90463        11.557       -.68221E-06   -.48593E-03
   8  norm          50.721        31.826       -.11231E-05   -.45806E-05
   9  norm          .10000E-03    45.105       -.17557E-04** at limit **
  10  Prefactor     91.741        83.431       -.57828E-05    .47667E-04
  11  Prefactor     .10000E-03    81.461       -.31341E-04** at limit **
  12  Prefactor     .10000E-03    15.881        .56809E-06** at limit **
  13  norm          18.178        6.5055        .98867E-06   -.33241E-05
  14  Prefactor     58.414        113.93        .40601E-04    .31572E-05
  15  Prefactor     .10000E-03    72.548        .97459E-05** at limit **
  16  Prefactor     .10000E-03    17.346        .14257E-05** at limit **
  17  Prefactor     .10000E-03    58.065        .35546E-04** at limit **
  18  Prefactor     .10000E-03    10.794       -.11412E-06** at limit **
  19  norm          .10000E-03    15.838       -.43836E-06** at limit **
  20  Prefactor     .10003E-03    457.14       -.16708E-03** at limit **
  21  Prefactor     104.11        141.06        .41494E-04    .69298E-04
  22  Normalizat    1.9982        .51206       -.27683E-05    .36347E-04
  23  Prefactor     .66307        .21691       -.29696E-05    .45440E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.31372
  norm       = 15.964
  norm       = 64.9644
  norm       = 0.0001
  Prefactor  = 165.9
  norm       = 0.904628
  norm       = 50.7206
  norm       = 0.0001
  Prefactor  = 91.7406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1784
  Prefactor  = 58.4135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 104.115
  Normalizat = 1.9982
  Prefactor  = 0.663067
 **********
 **   18 **HESSE 
 **********

 FCN=   2644.412     FROM HESSE     STATUS=OK           358 CALLS     2835 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3137        1.6416        .70508E-04   -1.5479    
   3  norm          15.964        17.700        .50116E-03   -1.4909    
   4  norm          64.964        44.407        .49791E-04   -1.4094    
   5  norm          .10000E-03    1.9471        .13745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     165.90        132.75        .31317E-04   -1.3125    
   7  norm          .90463        11.482        .32293E-03   -1.5518    
   8  norm          50.721        31.834        .56310E-04   -1.4282    
   9  norm          .10000E-03    45.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     91.741        83.381        .41954E-04   -1.3789    
  11  Prefactor     .10000E-03    81.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.178        6.5343        .74714E-04   -1.4855    
  14  Prefactor     58.414        113.69        .52507E-04   -1.4178    
  15  Prefactor     .10000E-03    72.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.813        .16502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    461.21        .21380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     104.11        141.66        .19708E-03   -1.3664    
  22  Normalizat    1.9982        .60780        .35839E-03   -.64596    
  23  Prefactor     .66307        .25520        .24106E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84332e-09
Minuit parameter uncertainties:
  1  5.42418e-06
  2  1.64161
  3  17.7057
  4  44.4299
  5  1.45242e-05
  6  132.993
  7  6.44701
  8  31.8445
  9  0.00022682
  10  83.4873
  11  4.23838e-05
  12  1.0936e-05
  13  6.53459
  14  114.115
  15  1.95724e-05
  16  1.35878e-05
  17  0.000103785
  18  5.79632e-07
  19  0.000129682
  20  0.00773149
  21  142.123
  22  0.610176
  23  0.255652
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  4.238e-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:  6.631e-01  2.557e-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.998e+00  6.102e-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: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154924/likelihoodResults_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.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) = 2644.41163198
delta logL = -5.83676246606e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2644.41157379
delta logL = -1.75731202035e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0872       1.0000          .0000       10.000    
     3 'Normalizat'    1.9982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66307       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=   2644.412     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      264 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.91        .18142E-02** at limit **
   2  Index         2.0782        5.9616        .50000        .85981E-06
   3  Normalizat    1.9982        .57578        .35839E-03   -.11339E-03
   4  Prefactor     .66307        .24252        .24106E-03   -.16380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07822
  Normalizat = 1.9982
  Prefactor  = 0.663066
 **********
 **   18 **HESSE 
 **********

 FCN=   2644.412     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0782        6.0347        .50000       -.62409    
   3  Normalizat    1.9982        .57625        .71678E-04   -.64596    
   4  Prefactor     .66307        .24272        .48212E-04   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92756e-11
Minuit parameter uncertainties:
  1  0.000149036
  2  4.08246
  3  0.578278
  4  0.243109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154924': 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) = 2644.4115736
delta logL = 1.25046426547e-08

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.490e-04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.078e+00  4.082e+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:  6.631e-01  2.431e-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.998e+00  5.783e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/154924/cmap_HighResolution_588988801_589248001_4FGL_J2046.8-4258_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-09-25 18:33:49.250042', job_id='154924', GAL2='0.66', fit_tolerance='1e-08', EG2='2.00', EG='2.00', time_epoch_completed='1632620029.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1349' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:33:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 154924: <4FGL_J2046.8-4258_daily_bin1349> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1349> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 18:20:20 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 18:23:08 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:23:08 2021
Terminated at Sat Sep 25 18:33:49 2021
Results reported at Sat Sep 25 18:33:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1349 311.72 -42.9694 588988801 589248001 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 :                                   459.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            809 sec.

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

