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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin1127
RA = 344.529, Dec = -27.9843
tmin = 531446401, tmax = 531705601
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='600174', job_status='RUN', time_executed='2021-09-29 03:10:56.135764', time_epoch_executed='1632910256.14' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600174/ft1_4FGL_J2258.1-2759_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600174/ft1_4FGL_J2258.1-2759_daily_bin1127.fits outfile=/scratch/kocevski/600174/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1127.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=531446401.0 tmax=531705601.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.59
user 3.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.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/600174/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1127.fits evtable="EVENTS" outfile="/scratch/kocevski/600174/ft1_filtered_4FGL_J2258.1-2759_daily_bin1127.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600174/ft1_filtered_4FGL_J2258.1-2759_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/600174/ltcube_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.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/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.fits
.....................!
real 11.90
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600174/ft1_filtered_4FGL_J2258.1-2759_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/600174/ltcube_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.fits outfile=/scratch/kocevski/600174/expmap_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.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/600174/ltcube_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.fits
.....................!
real 190.33
user 185.20
sys 4.81

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/600174/ft1_filtered_4FGL_J2258.1-2759_daily_bin1127.fits scfile=/scratch/kocevski/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.fits outfile=/scratch/kocevski/600174/cmap_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600174/ft1_filtered_4FGL_J2258.1-2759_daily_bin1127.fits scfile=/scratch/kocevski/600174/ft2_4FGL_J2258.1-2759_daily_bin1127.fits outfile=/scratch/kocevski/600174/cmap_HighResolution_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
     3 'norm      '    13.987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.343       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.565       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1090       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    115.63       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    119.82       1.0000         .10000E-03   10000.    
    17 'norm      '    .18754E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13263E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99603       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88913       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=   4533.136     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2396 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.035        .51330E-06** at limit **
   2  Prefactor     11.079        10.927        .47856E-06    .72227E-05
   3  norm          13.987        16.670       -.11623E-06   -.12728E-04
   4  Prefactor     44.952        32.160       -.22469E-06    .17757E-08
   5  Prefactor     12.340        12.204       -.15933E-06   -.33731E-04
   6  norm          .10000E-03    1.2742       -.33032E-07** at limit **
   7  Prefactor     .10000E-03    121.58        .29840E-05** at limit **
   8  Prefactor     15.567        20.788        .81834E-07    .30094E-05
   9  norm          .10000E-03    2.9492        .27832E-07** at limit **
  10  Prefactor     .10000E-03    27.412        .10461E-05** at limit **
  11  Prefactor     5.1048        29.098        .62070E-05   -.21383E-04
  12  norm          6.7419        1.9994       -.34479E-06   -.14128E-03
  13  Prefactor     115.65        85.949       -.25895E-05   -.52523E-05
  14  Prefactor     .10000E-03    26.407       -.81481E-06** at limit **
  15  norm          2.7487        6.3411        .34086E-05    .43338E-04
  16  Prefactor     119.83        82.996       -.93978E-06    .32501E-05
  17  norm          .10000E-03    5.5393        .43975E-07** at limit **
  18  Prefactor     .10000E-03    98.655       -.83490E-05** at limit **
  19  Prefactor     .10000E-03    127.18        .61484E-05** at limit **
  20  Prefactor     .10000E-03    23.315        .19811E-06** at limit **
  21  Normalizat    .99624        .25849       -.15741E-05    .64589E-04
  22  Prefactor     .88864        .22465        .12899E-05    .40702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.0791
  norm       = 13.9868
  Prefactor  = 44.9519
  Prefactor  = 12.3397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5672
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.10481
  norm       = 6.74193
  Prefactor  = 115.653
  Prefactor  = 0.0001
  norm       = 2.74873
  Prefactor  = 119.825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.996237
  Prefactor  = 0.888641
 **********
 **   18 **HESSE 
 **********

 FCN=   4533.136     FROM HESSE     STATUS=OK           338 CALLS     2734 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.079        10.930        .60188E-03   -1.5042    
   3  norm          13.987        16.669        .10710E-03   -1.4960    
   4  Prefactor     44.952        32.170        .59803E-04   -1.4366    
   5  Prefactor     12.340        12.209        .11402E-03   -1.5005    
   6  norm          .10000E-03    1.2882        .74183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    122.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.567        20.887        .10152E-03   -1.4919    
   9  norm          .10000E-03    2.9658        .11281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1048        30.466        .88938E-03   -1.5256    
  12  norm          6.7419        2.0450        .33375E-04   -1.5189    
  13  Prefactor     115.65        86.088        .18708E-03   -1.3553    
  14  Prefactor     .10000E-03    26.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7487        6.3695        .12276E-02   -1.5376    
  16  Prefactor     119.83        83.740        .36764E-04   -1.3514    
  17  norm          .10000E-03    5.7811        .30888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    99.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    127.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99624        .30819        .27248E-03   -.93157    
  22  Prefactor     .88864        .26743        .27098E-03   -.96539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24515e-11
Minuit parameter uncertainties:
  1  0.000199061
  2  10.9318
  3  16.6749
  4  32.1827
  5  12.212
  6  2.708e-06
  7  0.000187384
  8  20.8963
  9  2.07273e-06
  10  6.92438e-06
  11  24.9604
  12  2.04498
  13  86.181
  14  3.92956e-06
  15  6.37104
  16  83.8232
  17  7.15456e-06
  18  0.000142911
  19  3.91762e-05
  20  3.0685e-08
  21  0.308745
  22  0.267821
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  6.742e+00  2.045e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.886e-01  2.678e-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:  9.962e-01  3.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 74.57
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 3.82e-07 +/- 1.16e-07
Energy Flux (Fixed Index): 1.44e-04 +/- 4.37e-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) = 4532.8981456
delta logL = 0.237563547664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4532.81031819
delta logL = 0.325390959524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0872       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4749       1.0000          .0000       5.0000    
     3 'Normalizat'    .94392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92093       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=   4532.810     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0872        13.058        .40682E-02    .42758E-02
   2  alpha         2.4749        1.7986        .10399        .14206E-03
   3  Normalizat    .94391        .40725        .45460E-01   -.13125E-04
   4  Prefactor     .92093        .32441        .45271E-01   -.46344E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.08721
  alpha      = 2.47492
  Normalizat = 0.94391
  Prefactor  = 0.920933
 **********
 **   18 **HESSE 
 **********

 FCN=   4532.810     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0872        1.5077        .30859E-04   -1.5214    
   2  alpha         2.4749        .23383        .45445E-03   -.10033E-01
   3  Normalizat    .94391        .28093        .27857E-03   -.94934    
   4  Prefactor     .92093        .26097        .26654E-03   -.95413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87012e-10
Minuit parameter uncertainties:
  1  1.50766
  2  0.234172
  3  0.281366
  4  0.261328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600174': 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) = 4532.81031818
delta logL = 0.325390969736

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  6.087e+00  1.508e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.475e+00  2.342e-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:  9.209e-01  2.613e-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:  9.439e-01  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 76.10
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.47 +/- 0.23
Photon Flux (Free Index): 4.31e-07 +/- 1.03e-07
Energy Flux (Free Index): 1.37e-04 +/- 2.80e-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/600174/cmap_HighResolution_531446401_531705601_4FGL_J2258.1-2759_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.82e-07', energy_flux2='1.37e-04', photon_flux_error='1.16e-07', dlogl='3.25e-01', energy_flux='1.44e-04', photon_flux2='4.31e-07', job_status='DONE', time_completed='2021-09-29 03:19:18.975308', photon_index_error2='0.23', photon_index2='2.47', ts='74.57', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.00', time_epoch_completed='1632910758.98', return_code='0', job_id='600174', GAL2='0.92', EG2='0.94', return_code2='0', energy_flux_error='4.37e-05', photon_flux_error2='1.03e-07', ts2='76.10', photon_index='2.29' WHERE bin_id='1127' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:19:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 600174: <4FGL_J2258.1-2759_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin1127> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 03:10:42 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:10:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 03:10:43 2021
Terminated at Wed Sep 29 03:19:19 2021
Results reported at Wed Sep 29 03:19:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin1127 344.529 -27.9843 531446401 531705601 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 :                                   494.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             370.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            517 sec.

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

