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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin221
RA = 344.529, Dec = -27.9843
tmin = 296611201, tmax = 296870401
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='595828', job_status='RUN', time_executed='2021-09-29 02:56:09.451679', time_epoch_executed='1632909369.45' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595828/ft1_4FGL_J2258.1-2759_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595828/ft1_4FGL_J2258.1-2759_daily_bin221.fits outfile=/scratch/kocevski/595828/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin221.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=296611201.0 tmax=296870401.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.35
user 4.13
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595828/ft1_filtered_4FGL_J2258.1-2759_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/595828/ltcube_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.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/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits
.....................!
real 11.80
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595828/ft1_filtered_4FGL_J2258.1-2759_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/595828/ltcube_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.fits outfile=/scratch/kocevski/595828/expmap_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.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/595828/ltcube_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.fits
.....................!
real 190.46
user 185.26
sys 4.80

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/595828/ft1_filtered_4FGL_J2258.1-2759_daily_bin221.fits scfile=/scratch/kocevski/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits outfile=/scratch/kocevski/595828/cmap_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.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/595828/ft1_filtered_4FGL_J2258.1-2759_daily_bin221.fits scfile=/scratch/kocevski/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits outfile=/scratch/kocevski/595828/cmap_HighResolution_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595828/ft1_filtered_4FGL_J2258.1-2759_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/595828/ft2_4FGL_J2258.1-2759_daily_bin221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595828/Model_4FGL_J2258.1-2759_daily_bin221.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/595828/ft1_filtered_4FGL_J2258.1-2759_daily_bin221.fits.....................!
real 42.89
user 41.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.985       1.0000         .10000E-03   10000.    
     3 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41534E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    117.86       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4404       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3515       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9829       1.0000         .10000E-03   10000.    
    12 'norm      '    .48305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.961       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1474       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21684E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .18506E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.048       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.781       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67052       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0338       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=   5215.030     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2375 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.047        22.480        .14116E-06    .17089E-03
   2  Prefactor     27.988        9.4753       -.17021E-06    .41389E-04
   3  norm          .10000E-03    11.432       -.25087E-06** at limit **
   4  Prefactor     7.1485        9.5381       -.12705E-06    .41595E-05
   5  Prefactor     .10008E-03    10.326       -.39843E-05** at limit **
   6  norm          .10000E-03    .80785       -.12678E-05** at limit **
   7  Prefactor     117.79        52.542       -.23483E-06    .31875E-03
   8  Prefactor     5.4320        13.308       -.37784E-06    .83655E-04
   9  norm          2.3512        3.9554        .12516E-06    .19658E-03
  10  Prefactor     .10000E-03    5.3125       -.14243E-06** at limit **
  11  Prefactor     8.9975        9.6538        .17698E-06    .35162E-03
  12  norm          .48286        .45099       -.82723E-07   -.12571E-03
  13  Prefactor     41.992        66.321        .21519E-05    .83931E-04
  14  Prefactor     .10000E-03    7.7224       -.19589E-06** at limit **
  15  norm          3.1452        8.2028       -.11704E-06    .24097E-04
  16  Prefactor     .10000E-03    67.023        .58326E-06** at limit **
  17  norm          .10000E-03    1.8986       -.12363E-06** at limit **
  18  Prefactor     .10000E-03    12.588       -.66107E-06** at limit **
  19  Prefactor     43.057        43.792        .62110E-06    .42184E-04
  20  Prefactor     38.783        39.631       -.78893E-07    .12622E-04
  21  Normalizat    .66984        .19570        .34628E-05    .55861E-03
  22  Prefactor     1.0344        .17570       -.56107E-06    .74253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0471
  Prefactor  = 27.9876
  norm       = 0.0001
  Prefactor  = 7.14849
  Prefactor  = 0.000100079
  norm       = 0.0001
  Prefactor  = 117.794
  Prefactor  = 5.43202
  norm       = 2.35124
  Prefactor  = 0.0001
  Prefactor  = 8.99749
  norm       = 0.482856
  Prefactor  = 41.9916
  Prefactor  = 0.0001
  norm       = 3.14522
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 43.057
  Prefactor  = 38.7832
  Normalizat = 0.669836
  Prefactor  = 1.0344
 **********
 **   18 **HESSE 
 **********

 FCN=   5215.030     FROM HESSE     STATUS=OK           342 CALLS     2717 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.047        22.470        .64975E-04   -1.4474    
   2  Prefactor     27.988        9.4773        .75732E-04   -1.4649    
   3  norm          .10000E-03    11.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1485        9.5347        .15004E-03   -1.5173    
   5  Prefactor     .10008E-03    24.345        .39194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .81438        .63433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     117.79        52.929        .18532E-03   -1.3533    
   8  Prefactor     5.4320        13.352        .17228E-03   -1.5242    
   9  norm          2.3512        3.8994        .16607E-03   -1.5401    
  10  Prefactor     .10000E-03    5.3162        .16250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9975        9.5470        .13373E-03   -1.5108    
  12  norm          .48286        .43292        .42418E-03   -1.5569    
  13  Prefactor     41.992        66.598        .61884E-04   -1.4411    
  14  Prefactor     .10000E-03    7.7826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1452        8.2078        .22848E-03   -1.5353    
  16  Prefactor     .10000E-03    67.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.7926        .19141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.057        43.829        .61101E-04   -1.4395    
  20  Prefactor     38.783        39.640        .64362E-04   -1.4462    
  21  Normalizat    .66984        .22951        .26776E-03   -1.0510    
  22  Prefactor     1.0344        .20935        .21933E-03   -.91592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20293e-09
Minuit parameter uncertainties:
  1  22.4752
  2  9.47778
  3  5.633e-06
  4  9.53673
  5  0.00278254
  6  1.14246e-05
  7  52.9507
  8  13.3593
  9  3.89978
  10  9.55071e-06
  11  9.54866
  12  0.432919
  13  66.7167
  14  3.37999e-05
  15  8.21069
  16  0.000132535
  17  0.000233582
  18  6.05455e-05
  19  43.8622
  20  39.667
  21  0.229838
  22  0.209515
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  4.829e-01  4.329e-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.034e+00  2.095e-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:  6.698e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 9.25e-06

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

Saving results to:
/scratch/kocevski/595828/likelihoodResults_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.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) = 5213.4841123
delta logL = 1.54584025387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5213.47241263
delta logL = 1.55753992042

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29920       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91072       1.0000          .0000       5.0000    
     3 'Normalizat'    .68825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0255       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=   5213.472     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29912        .26284        .69441E-02   -.38052E-03
   2  alpha         .91060        .52854        .39335       -.21929E-04
   3  Normalizat    .68829        .17427        .42134E-01    .19983E-04
   4  Prefactor     1.0255        .17530        .41633E-01    .43817E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.29912
  alpha      = 0.910603
  Normalizat = 0.688289
  Prefactor  = 1.02546
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.472     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .15E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29912        .33539        .30297E-04   -1.5599    
   2  alpha         .91060        .65663        .17492E-02   -.68899    
   3  Normalizat    .68829        .20201        .26425E-03   -1.0436    
   4  Prefactor     1.0255        .20335        .22013E-03   -.91886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46878e-16
Minuit parameter uncertainties:
  1  0.335394
  2  0.670014
  3  0.202229
  4  0.203501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595828': 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) = 5213.47241257
delta logL = 1.55753997943

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.991e-01  3.354e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  9.106e-01  6.700e-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.025e+00  2.035e-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:  6.883e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 0.91 +/- 0.67
Photon Flux (Free Index): 8.64e-09 +/- 8.03e-09
Energy Flux (Free Index): 2.93e-05 +/- 3.44e-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/595828/cmap_HighResolution_296611201_296870401_4FGL_J2258.1-2759_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='2.93e-05', photon_flux_error='2.45e-08', dlogl='1.56e+00', energy_flux='1.03e-05', photon_flux2='8.64e-09', job_status='DONE', time_completed='2021-09-29 03:05:50.957270', photon_index_error2='0.67', photon_index2='0.91', ts='3.21', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.83e-08', energy_flux_error2='3.44e-05', EG='0.67', time_epoch_completed='1632909950.96', return_code='0', job_id='595828', GAL2='1.03', EG2='0.69', return_code2='0', energy_flux_error='9.25e-06', photon_flux_error2='8.03e-09', ts2='6.35', photon_index='2.29' WHERE bin_id='221' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 595828: <4FGL_J2258.1-2759_daily_bin221> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin221> 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) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:54 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:54 2021
Terminated at Wed Sep 29 03:05:51 2021
Results reported at Wed Sep 29 03:05:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin221 344.529 -27.9843 296611201 296870401 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 :                                   576.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            600 sec.

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

