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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin310
RA = 344.529, Dec = -27.9843
tmin = 319680001, tmax = 319939201
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='595928', job_status='RUN', time_executed='2021-09-29 02:59:46.323564', time_epoch_executed='1632909586.32' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595928/ft1_4FGL_J2258.1-2759_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595928/ft2_4FGL_J2258.1-2759_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595928/ft1_4FGL_J2258.1-2759_daily_bin310.fits outfile=/scratch/kocevski/595928/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin310.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=319680001.0 tmax=319939201.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.44
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595928/ft1_filtered_4FGL_J2258.1-2759_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/595928/ft2_4FGL_J2258.1-2759_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/595928/ltcube_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.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/595928/ft2_4FGL_J2258.1-2759_daily_bin310.fits
.....................!
real 11.58
user 11.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595928/ft1_filtered_4FGL_J2258.1-2759_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/595928/ft2_4FGL_J2258.1-2759_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/595928/ltcube_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.fits outfile=/scratch/kocevski/595928/expmap_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.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/595928/ltcube_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.fits
.....................!
real 189.78
user 185.26
sys 4.21

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/595928/ft1_filtered_4FGL_J2258.1-2759_daily_bin310.fits scfile=/scratch/kocevski/595928/ft2_4FGL_J2258.1-2759_daily_bin310.fits outfile=/scratch/kocevski/595928/cmap_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595928/ft1_filtered_4FGL_J2258.1-2759_daily_bin310.fits scfile=/scratch/kocevski/595928/ft2_4FGL_J2258.1-2759_daily_bin310.fits outfile=/scratch/kocevski/595928/cmap_HighResolution_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.543       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.798       1.0000         .10000E-03   10000.    
     6 'norm      '    .13948E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.538       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.529       1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8526       1.0000         .10000E-03   10000.    
    12 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0655       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.653       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.690       1.0000         .10000E-03   10000.    
    17 'norm      '    .10311E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.783       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86708       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0646       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=   5613.280     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2406 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.541        12.847        .89026E-07   -.23787E-04
   2  Prefactor     .10000E-03    6.6263        .14701E-06** at limit **
   3  norm          .10000E-03    5.6063        .11725E-06** at limit **
   4  Prefactor     .10000E-03    4.6921       -.26468E-08** at limit **
   5  Prefactor     20.807        13.881        .23881E-06   -.22027E-03
   6  norm          .10000E-03    1.7188        .19145E-05** at limit **
   7  Prefactor     49.559        51.040       -.42849E-05   -.34095E-03
   8  Prefactor     15.536        13.374       -.60997E-08   -.79304E-04
   9  norm          .10000E-03    2.4063        .40726E-06** at limit **
  10  Prefactor     17.187        18.038       -.37048E-06   -.34783E-03
  11  Prefactor     8.8695        11.032       -.57969E-06   -.72771E-03
  12  norm          .10000E-03    .29042        .34049E-06** at limit **
  13  Prefactor     5.0654        61.890        .32012E-06   -.23649E-05
  14  Prefactor     .10000E-03    4.5684        .24542E-06** at limit **
  15  norm          14.652        10.240       -.17359E-07   -.30928E-05
  16  Prefactor     14.655        40.510       -.80340E-06   -.89530E-04
  17  norm          .10000E-03    1.8942        .47412E-08** at limit **
  18  Prefactor     34.780        32.540        .50872E-07   -.18536E-04
  19  Prefactor     .10000E-03    24.307       -.14316E-07** at limit **
  20  Prefactor     .10000E-03    19.094       -.29540E-07** at limit **
  21  Normalizat    .86676        .19922        .76034E-06   -.36839E-03
  22  Prefactor     1.0650        .18519       -.94069E-06   -.32254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5415
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8067
  norm       = 0.000100003
  Prefactor  = 49.5591
  Prefactor  = 15.5363
  norm       = 0.0001
  Prefactor  = 17.1871
  Prefactor  = 8.86952
  norm       = 0.0001
  Prefactor  = 5.06537
  Prefactor  = 0.0001
  norm       = 14.6517
  Prefactor  = 14.6551
  norm       = 0.0001
  Prefactor  = 34.7799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.866763
  Prefactor  = 1.06495
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.280     FROM HESSE     STATUS=OK           342 CALLS     2748 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.541        12.849        .11791E-03   -1.5028    
   2  Prefactor     .10000E-03    6.7704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.6082        .17327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6939        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.807        13.887        .87826E-04   -1.4795    
   6  norm          .10000E-03    2.4492        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.559        52.303        .56976E-04   -1.4299    
   8  Prefactor     15.536        13.463        .10164E-03   -1.4919    
   9  norm          .10000E-03    2.4411        .11347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.187        18.062        .96660E-04   -1.4879    
  11  Prefactor     8.8695        10.669        .13471E-03   -1.5112    
  12  norm          .10000E-03    .47395        .72464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0654        61.877        .17865E-03   -1.5258    
  14  Prefactor     .10000E-03    4.5869        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.652        10.248        .10463E-03   -1.4942    
  16  Prefactor     14.655        40.145        .10450E-03   -1.4942    
  17  norm          .10000E-03    3.2627        .19728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.780        32.304        .67949E-04   -1.4528    
  19  Prefactor     .10000E-03    24.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86676        .23553        .25515E-03   -.97638    
  22  Prefactor     1.0650        .21840        .23294E-03   -.90595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07191e-09
Minuit parameter uncertainties:
  1  12.8517
  2  3.22637e-06
  3  2.3859e-06
  4  3.97102e-06
  5  13.8896
  6  0.000179408
  7  52.352
  8  13.4656
  9  4.28846e-06
  10  18.068
  11  10.6715
  12  3.51425e-06
  13  35.4531
  14  9.39663e-06
  15  10.249
  16  40.2192
  17  4.80476e-06
  18  32.3201
  19  8.42547e-06
  20  7.24409e-06
  21  0.235814
  22  0.218586
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  3.514e-06  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.065e+00  2.186e-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.668e-01  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/595928/likelihoodResults_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.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) = 5613.29051466
delta logL = -0.0101327158645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5613.28038121
delta logL = 7.27815859136e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3001       1.0000          .0000       5.0000    
     3 'Normalizat'    .86676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0650       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=   5613.280     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      220 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .17622        .10837E-01** at limit **
   2  alpha         3.2933        2.8400        .41319        .11383E-06
   3  Normalizat    .86675        .46092E-02    .44475E-01    .50066E-03
   4  Prefactor     1.0650        .46402E-02    .39104E-01    .58289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 3.29334
  Normalizat = 0.866749
  Prefactor  = 1.06496
 **********
 **   18 **HESSE 
 **********

 FCN=   5613.280     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1345        .58165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2933        3.6770        .16528        .32292    
   3  Normalizat    .86675        .21086        .25515E-03   -.97639    
   4  Prefactor     1.0650        .21235        .23294E-03   -.90594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62569e-09
Minuit parameter uncertainties:
  1  4.96264e-05
  2  136.429
  3  0.211061
  4  0.212519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595928': 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) = 5613.28035192
delta logL = 3.00224128296e-05

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  4.963e-05  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.293e+00  1.364e+02  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.065e+00  2.125e-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.667e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.529 -27.984

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/595928/cmap_HighResolution_319680001_319939201_4FGL_J2258.1-2759_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-09-29 03:09:42.913303', job_id='595928', GAL2='1.06', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632910182.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.00e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='310' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 595928: <4FGL_J2258.1-2759_daily_bin310> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin310> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:56:01 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:56:03 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:56:03 2021
Terminated at Wed Sep 29 03:09:43 2021
Results reported at Wed Sep 29 03:09:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin310 344.529 -27.9843 319680001 319939201 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 :                                   594.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

