/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 123 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2258.1-2759_daily_bin245
RA = 344.529, Dec = -27.9843
tmin = 302832001, tmax = 303091201
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='595863', job_status='RUN', time_executed='2021-09-29 02:58:07.241564', time_epoch_executed='1632909487.24' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595863/ft1_4FGL_J2258.1-2759_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595863/ft1_4FGL_J2258.1-2759_daily_bin245.fits outfile=/scratch/kocevski/595863/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin245.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=302832001.0 tmax=303091201.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.58
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.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/595863/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/595863/ltcube_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.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/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits
.....................!
real 11.76
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/595863/ltcube_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.fits outfile=/scratch/kocevski/595863/expmap_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.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/595863/ltcube_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.fits
.....................!
real 192.23
user 186.39
sys 5.46

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2258.1-2759 @ 344.529 -27.9843

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits scfile=/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits outfile=/scratch/kocevski/595863/cmap_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.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=344.529 yref=-27.9843 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits scfile=/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits outfile=/scratch/kocevski/595863/cmap_HighResolution_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.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=344.529 yref=-27.9843 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595863/Model_4FGL_J2258.1-2759_daily_bin245.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/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits.....................!
real 35.06
user 33.78
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits', '/scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits', expMap='/scratch/kocevski/595863/expmap_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.fits', expCube='/scratch/kocevski/595863/ltcube_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595863/Model_4FGL_J2258.1-2759_daily_bin245.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2258.1-2759'

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/595863/ft1_filtered_4FGL_J2258.1-2759_daily_bin245.fits
Spacecraft file(s): /scratch/kocevski/595863/ft2_4FGL_J2258.1-2759_daily_bin245.fits
Exposure map: /scratch/kocevski/595863/expmap_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.fits
Exposure cube: /scratch/kocevski/595863/ltcube_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595863/Model_4FGL_J2258.1-2759_daily_bin245.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) = 3872.84620338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.963       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6336       1.0000         .10000E-03   10000.    
     3 'norm      '    28.194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.398       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2933       1.0000         .10000E-03   10000.    
     9 'norm      '    11.955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36209E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60780       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11651E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0115       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13455E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    168.23       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   3872.834     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     2803 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.926        25.483        .33887E-03    .50944E-04
   2  Prefactor     6.6368        8.2946        .15580E-03    .15542E-04
   3  norm          28.184        38.998        .75451E-04   -.36238E-04
   4  Prefactor     57.292        39.788        .52952E-04    .31539E-04
   5  Prefactor     .10000E-03    21.902        .36285E-03** at limit **
   6  norm          1.0066        1.8148        .13011E-02    .18754E-03
   7  Prefactor     .10000E-03    23.963        .18142E-02** at limit **
   8  Prefactor     1.2692        61.608        .38917E-03   -.69584E-04
   9  norm          11.955        6.5198        .10892E-03   -.53229E-03
  10  Prefactor     .10000E-03    11.291        .18142E-02** at limit **
  11  Prefactor     .10005E-03    31.202        .37754E-02** at limit **
  12  norm          1.1999        .84509        .44641E-04   -.29795E-02
  13  Prefactor     1.1617        108.42        .17036        .40045E-05
  14  Prefactor     .10000E-03    14.890        .18142E-02** at limit **
  15  norm          9.0077        10.215        .13352E-03   -.46832E-05
  16  Prefactor     .10000E-03    85.428        .18142E-02** at limit **
  17  norm          .10000E-03    1.5150        .74510E-03** at limit **
  18  Prefactor     .10000E-03    18.331        .18142E-02** at limit **
  19  Prefactor     .10000E-03    39.942        .18142E-02** at limit **
  20  Prefactor     168.24        102.54        .15551E-03   -.89553E-05
  21  Normalizat    .88546        .28670        .26651E-03   -.76699E-04
  22  Prefactor     1.0121        .26728        .24184E-03   -.18568E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.9261
  Prefactor  = 6.63677
  norm       = 28.1836
  Prefactor  = 57.2919
  Prefactor  = 0.0001
  norm       = 1.00655
  Prefactor  = 0.0001
  Prefactor  = 1.26923
  norm       = 11.9549
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  norm       = 1.19989
  Prefactor  = 1.16171
  Prefactor  = 0.0001
  norm       = 9.00767
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 168.244
  Normalizat = 0.885463
  Prefactor  = 1.01215
 **********
 **   18 **HESSE 
 **********

 FCN=   3872.834     FROM HESSE     STATUS=OK           332 CALLS     3135 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.926        25.482        .13555E-04   -1.4525    
   2  Prefactor     6.6368        8.2944        .62321E-05   -1.5193    
   3  norm          28.184        38.983        .30180E-05   -1.4646    
   4  Prefactor     57.292        39.786        .10590E-04   -1.4193    
   5  Prefactor     .10000E-03    21.904        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0066        1.8134        .52043E-04   -1.5507    
   7  Prefactor     .10000E-03    23.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2692        61.497        .15567E-04   -1.5483    
   9  norm          11.955        6.5191        .21784E-04   -1.5016    
  10  Prefactor     .10000E-03    11.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    31.313        .75509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1999        .84307        .17856E-05   -1.5489    
  13  Prefactor     1.1617        109.77        .16899       -1.5492    
  14  Prefactor     .10000E-03    14.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0077        10.215        .53406E-05   -1.5108    
  16  Prefactor     .10000E-03    85.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5151        .14902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     168.24        102.54        .31102E-04   -1.3106    
  21  Normalizat    .88546        .28694        .10660E-04   -.96973    
  22  Prefactor     1.0121        .26760        .96737E-05   -.92326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36645e-09
Minuit parameter uncertainties:
  1  25.4903
  2  8.29585
  3  39.0183
  4  39.8041
  5  8.51456e-05
  6  1.81345
  7  3.99158e-05
  8  17.6883
  9  6.51947
  10  3.01807e-05
  11  0.00261955
  12  0.843074
  13  22.6273
  14  7.41349e-05
  15  10.2172
  16  0.000215002
  17  4.49716e-06
  18  2.25266e-05
  19  2.23815e-05
  20  102.649
  21  0.28744
  22  0.267955
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.200e+00  8.431e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.012e+00  2.680e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.855e-01  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.57
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 6.79e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.80e-05

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): 0
logL (Free Index) = 3872.83074447
delta logL = 0.00339763996544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3872.83038589
delta logL = 0.00375622609363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2137       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2239       1.0000          .0000       5.0000    
     3 'Normalizat'    .88980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3872.830     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      182 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2134        18.232        .10223E-01    .20623E-03
   2  alpha         2.2232        2.9190        .39506        .15079E-04
   3  Normalizat    .88987        .98338E-01    .44771E-01    .13365E-04
   4  Prefactor     1.0098        .76260E-01    .43350E-01    .89097E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21336
  alpha      = 2.22317
  Normalizat = 0.889869
  Prefactor  = 1.00981
 **********
 **   18 **HESSE 
 **********

 FCN=   3872.830     FROM HESSE     STATUS=OK            33 CALLS      215 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2134        .84515        .45594E-04   -1.5488    
   2  alpha         2.2232        .73876        .13658E-01   -.11096    
   3  Normalizat    .88987        .27817        .26594E-03   -.96817    
   4  Prefactor     1.0098        .26613        .24211E-03   -.92403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3316e-10
Minuit parameter uncertainties:
  1  0.845159
  2  0.750108
  3  0.278618
  4  0.266482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595863': 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) = 3872.83038531
delta logL = 0.00375680893194

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.213e+00  8.452e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.223e+00  7.501e-01  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.010e+00  2.665e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.899e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.22 +/- 0.75
Photon Flux (Free Index): 6.40e-08 +/- 6.29e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.77e-05

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/595863/cmap_HighResolution_302832001_303091201_4FGL_J2258.1-2759_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.79e-08', energy_flux2='2.57e-05', photon_flux_error='4.77e-08', dlogl='3.76e-03', energy_flux='2.56e-05', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-29 03:06:10.826760', photon_index_error2='0.75', photon_index2='2.22', ts='4.57', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.89', time_epoch_completed='1632909970.83', return_code='0', job_id='595863', GAL2='1.01', EG2='0.89', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='6.29e-08', ts2='4.60', photon_index='2.29' WHERE bin_id='245' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:06:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 595863: <4FGL_J2258.1-2759_daily_bin245> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin245> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:54 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:55:55 2021
Terminated at Wed Sep 29 03:06:11 2021
Results reported at Wed Sep 29 03:06:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin245 344.529 -27.9843 302832001 303091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2258.1-2759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   480.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            617 sec.

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

