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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin218
RA = 344.529, Dec = -27.9843
tmin = 295833601, tmax = 296092801
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='595823', job_status='RUN', time_executed='2021-09-29 02:56:08.586520', time_epoch_executed='1632909368.59' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595823/ft1_4FGL_J2258.1-2759_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595823/ft1_4FGL_J2258.1-2759_daily_bin218.fits outfile=/scratch/kocevski/595823/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin218.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.37
user 2.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.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/595823/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin218.fits evtable="EVENTS" outfile="/scratch/kocevski/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/595823/ltcube_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.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/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits
.....................!
real 12.01
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/595823/ltcube_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.fits outfile=/scratch/kocevski/595823/expmap_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.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/595823/ltcube_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.fits
.....................!
real 198.50
user 192.51
sys 5.63

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/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits scfile=/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits outfile=/scratch/kocevski/595823/cmap_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits scfile=/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits outfile=/scratch/kocevski/595823/cmap_HighResolution_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595823/Model_4FGL_J2258.1-2759_daily_bin218.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/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits.....................!
real 53.53
user 52.15
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits', '/scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits', expMap='/scratch/kocevski/595823/expmap_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.fits', expCube='/scratch/kocevski/595823/ltcube_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595823/Model_4FGL_J2258.1-2759_daily_bin218.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/595823/ft1_filtered_4FGL_J2258.1-2759_daily_bin218.fits
Spacecraft file(s): /scratch/kocevski/595823/ft2_4FGL_J2258.1-2759_daily_bin218.fits
Exposure map: /scratch/kocevski/595823/expmap_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.fits
Exposure cube: /scratch/kocevski/595823/ltcube_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595823/Model_4FGL_J2258.1-2759_daily_bin218.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) = 6941.87229493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45093E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2870       1.0000         .10000E-03   10000.    
     3 'norm      '    .38672E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0369       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.698       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.474       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9351       1.0000         .10000E-03   10000.    
    12 'norm      '    .36051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1524       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61850       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.

 FCN=   6941.605     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2059 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.3384        .22595E-06** at limit **
   2  Prefactor     4.2873        4.8106       -.35611E-05   -.54133E-04
   3  norm          .10002E-03    8.0668       -.59363E-06** at limit **
   4  Prefactor     .10000E-03    3.4325       -.65972E-07** at limit **
   5  Prefactor     .10000E-03    3.8572       -.65208E-08** at limit **
   6  norm          1.0360        1.3019        .15973E-07   -.12089E-03
   7  Prefactor     .10000E-03    27.018        .26008E-06** at limit **
   8  Prefactor     .10000E-03    3.4321        .27056E-07** at limit **
   9  norm          17.698        5.0686       -.20500E-06    .14027E-04
  10  Prefactor     10.475        9.9542       -.16677E-07   -.19970E-04
  11  Prefactor     2.9255        2.4124        .25398E-06   -.72148E-03
  12  norm          .36069        .40653       -.36929E-07   -.29359E-03
  13  Prefactor     .10000E-03    27.591       -.31165E-05** at limit **
  14  Prefactor     .10000E-03    15.508        .10833E-05** at limit **
  15  norm          .10002E-03    3.2325       -.11863E-05** at limit **
  16  Prefactor     .10000E-03    44.207        .49581E-05** at limit **
  17  norm          .10000E-03    .89129        .67363E-08** at limit **
  18  Prefactor     .10000E-03    10.201       -.82740E-06** at limit **
  19  Prefactor     .10000E-03    84.557       -.43410E-05** at limit **
  20  Prefactor     .10000E-03    10.816        .41184E-05** at limit **
  21  Normalizat    1.1525        .14309        .48449E-06    .98078E-04
  22  Prefactor     .61833        .13949        .22714E-06    .11657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 4.28733
  norm       = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6983
  Prefactor  = 10.4752
  Prefactor  = 2.92547
  norm       = 0.360694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15254
  Prefactor  = 0.618326
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.605     FROM HESSE     STATUS=OK           342 CALLS     2401 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    34.888        .43487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2873        4.8306        .18817E-03   -1.5294    
   3  norm          .10002E-03    49.456        .45744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4342        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8798        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0360        1.2986        .24707E-03   -1.5504    
   7  Prefactor     .10000E-03    27.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4447        .15071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.698        5.2873        .92323E-04   -1.4866    
  10  Prefactor     10.475        10.697        .12380E-03   -1.5061    
  11  Prefactor     2.9255        9.6397        .11855E-02   -1.5366    
  12  norm          .36069        .41865        .51164E-03   -1.5588    
  13  Prefactor     .10000E-03    27.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    11.110        .28461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .90573        .76784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    84.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1525        .16990        .19787E-03   -.88082    
  22  Prefactor     .61833        .16245        .25729E-03   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88101e-09
Minuit parameter uncertainties:
  1  0.000965506
  2  4.83101
  3  0.00190191
  4  4.21055e-06
  5  3.44254e-06
  6  1.29867
  7  1.15722e-05
  8  1.72375e-06
  9  5.28747
  10  10.6989
  11  9.64481
  12  0.418651
  13  8.69326e-06
  14  3.2514e-05
  15  0.000958354
  16  3.2084e-05
  17  1.23219e-06
  18  6.09484e-06
  19  4.74264e-05
  20  2.87646e-06
  21  0.169986
  22  0.162573
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  3.607e-01  4.187e-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:  6.183e-01  1.626e-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:  1.153e+00  1.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 7.71e-06 +/- 8.94e-06

TS (Fixed Index): 2.20
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595823/likelihoodResults_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.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): 0
logL (Free Index) = 6941.23115236
delta logL = 0.373978088961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6941.21787342
delta logL = 0.387257033545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29234       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1067       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63269       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=   6941.218     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29254        2.7536        .73008E-02    .12406E-02
   2  alpha         3.1069        3.9824        .42798        .59973E-04
   3  Normalizat    1.1241        .31908E-01    .37089E-01   -.30353E-04
   4  Prefactor     .63304        .30483E-01    .41498E-01    .53872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.292539
  alpha      = 3.1069
  Normalizat = 1.12406
  Prefactor  = 0.633042
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.218     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29254        .33982        .32859E-04   -1.5600    
   2  alpha         3.1069        .90585        .14616E-01    .24521    
   3  Normalizat    1.1241        .16740        .19974E-03   -.88983    
   4  Prefactor     .63304        .16156        .25427E-03   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95062e-11
Minuit parameter uncertainties:
  1  0.339826
  2  0.928355
  3  0.167484
  4  0.161678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595823': 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) = 6941.21786867
delta logL = 0.387261786163

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.925e-01  3.398e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.107e+00  9.284e-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:  6.330e-01  1.617e-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:  1.124e+00  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 3.11 +/- 0.93
Photon Flux (Free Index): 4.90e-08 +/- 4.37e-08
Energy Flux (Free Index): 1.06e-05 +/- 8.02e-06

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/595823/cmap_HighResolution_295833601_296092801_4FGL_J2258.1-2759_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='1.06e-05', photon_flux_error='2.37e-08', dlogl='3.87e-01', energy_flux='7.71e-06', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-29 03:06:56.737090', photon_index_error2='0.93', photon_index2='3.11', ts='2.20', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='8.02e-06', EG='1.15', time_epoch_completed='1632910016.74', return_code='0', job_id='595823', GAL2='0.63', EG2='1.12', return_code2='0', energy_flux_error='8.94e-06', photon_flux_error2='4.37e-08', ts2='3.01', photon_index='2.29' WHERE bin_id='218' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 595823: <4FGL_J2258.1-2759_daily_bin218> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin218> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:51 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:53 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:53 2021
Terminated at Wed Sep 29 03:06:57 2021
Results reported at Wed Sep 29 03:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin218 344.529 -27.9843 295833601 296092801 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 :                                   643.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            666 sec.

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

