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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin407
RA = 344.529, Dec = -27.9843
tmin = 344822401, tmax = 345081601
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='597037', job_status='RUN', time_executed='2021-09-29 03:03:12.605450', time_epoch_executed='1632909792.61' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597037

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597037/ft1_4FGL_J2258.1-2759_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597037/ft2_4FGL_J2258.1-2759_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597037/ft1_4FGL_J2258.1-2759_daily_bin407.fits outfile=/scratch/kocevski/597037/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin407.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=344822401.0 tmax=345081601.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.39
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597037/ft1_filtered_4FGL_J2258.1-2759_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/597037/ft2_4FGL_J2258.1-2759_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/597037/ltcube_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.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/597037/ft2_4FGL_J2258.1-2759_daily_bin407.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597037/ft1_filtered_4FGL_J2258.1-2759_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/597037/ft2_4FGL_J2258.1-2759_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/597037/ltcube_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.fits outfile=/scratch/kocevski/597037/expmap_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.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/597037/ltcube_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.fits
.....................!
real 190.35
user 185.13
sys 4.90

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/597037/ft1_filtered_4FGL_J2258.1-2759_daily_bin407.fits scfile=/scratch/kocevski/597037/ft2_4FGL_J2258.1-2759_daily_bin407.fits outfile=/scratch/kocevski/597037/cmap_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.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/597037/ft1_filtered_4FGL_J2258.1-2759_daily_bin407.fits scfile=/scratch/kocevski/597037/ft2_4FGL_J2258.1-2759_daily_bin407.fits outfile=/scratch/kocevski/597037/cmap_HighResolution_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.799       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .33662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5497       1.0000         .10000E-03   10000.    
     9 'norm      '    25.728       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0590       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.550       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    135.18       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95428       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98503       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=   4546.993     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2391 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.837        20.941       -.14867E-07    .12041E-05
   2  Prefactor     .10000E-03    2.7306        .36760E-07** at limit **
   3  norm          .10000E-03    44.057        .26566E-06** at limit **
   4  Prefactor     26.800        29.776       -.13340E-06    .77116E-05
   5  Prefactor     .10000E-03    8.1545        .16567E-06** at limit **
   6  norm          .33746        2.4185        .13418E-05   -.96640E-04
   7  Prefactor     .10000E-03    124.79       -.12170E-05** at limit **
   8  Prefactor     5.5496        7.9498       -.52300E-08    .97512E-05
   9  norm          25.726        8.1384       -.12928E-06    .29362E-03
  10  Prefactor     .10000E-03    11.926       -.42116E-06** at limit **
  11  Prefactor     4.0464        9.2179        .12994E-05    .22416E-03
  12  norm          .10000E-03    .31296       -.36425E-06** at limit **
  13  Prefactor     15.259        106.20       -.11580E-05   -.20554E-04
  14  Prefactor     .10000E-03    4.7300       -.91309E-07** at limit **
  15  norm          .10000E-03    3.2476       -.88355E-08** at limit **
  16  Prefactor     99.547        61.380       -.22102E-06    .90362E-05
  17  norm          .10000E-03    1.2827        .71826E-07** at limit **
  18  Prefactor     .10000E-03    19.480        .20686E-07** at limit **
  19  Prefactor     135.13        113.69       -.28065E-06   -.24894E-04
  20  Prefactor     .10000E-03    23.099       -.16361E-07** at limit **
  21  Normalizat    .95444        .22609        .10893E-05   -.78232E-08
  22  Prefactor     .98488        .21139       -.12580E-05    .10399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.837
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.7995
  Prefactor  = 0.0001
  norm       = 0.337457
  Prefactor  = 0.000100002
  Prefactor  = 5.54961
  norm       = 25.7261
  Prefactor  = 0.0001
  Prefactor  = 4.04641
  norm       = 0.0001
  Prefactor  = 15.2591
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 99.5469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.132
  Prefactor  = 0.0001
  Normalizat = 0.954443
  Prefactor  = 0.984884
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.993     FROM HESSE     STATUS=OK           340 CALLS     2731 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.837        20.944        .73346E-04   -1.4615    
   2  Prefactor     .10000E-03    2.7332        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    44.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.800        29.850        .77386E-04   -1.4672    
   5  Prefactor     .10000E-03    8.1752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .33746        2.2558        .19656E-03   -1.5592    
   7  Prefactor     .10000E-03    127.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5496        7.9431        .17054E-03   -1.5237    
   9  norm          25.726        8.0768        .78977E-04   -1.4693    
  10  Prefactor     .10000E-03    11.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0464        9.4813        .20013E-03   -1.5306    
  12  norm          .10000E-03    .39217        .70745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.259        107.01        .10233E-03   -1.4927    
  14  Prefactor     .10000E-03    4.7396        .14320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2547        .11867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     99.547        61.870        .40292E-04   -1.3709    
  17  norm          .10000E-03    1.2924        .74559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     135.13        113.81        .17319E-03   -1.3378    
  20  Prefactor     .10000E-03    23.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95444        .26511        .25741E-03   -.94573    
  22  Prefactor     .98488        .24578        .24650E-03   -.93235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33819e-10
Minuit parameter uncertainties:
  1  20.9492
  2  5.56811e-07
  3  5.26361e-05
  4  29.8669
  5  1.18661e-05
  6  1.74482
  7  0.000928937
  8  7.94462
  9  8.07716
  10  9.66443e-06
  11  9.48482
  12  1.01475e-06
  13  81.0249
  14  3.7339e-06
  15  4.98159e-07
  16  61.9101
  17  4.03864e-07
  18  1.7506e-06
  19  113.995
  20  2.30787e-06
  21  0.265472
  22  0.246056
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  1.015e-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:  9.849e-01  2.461e-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.544e-01  2.655e-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: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597037/likelihoodResults_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.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) = 4547.00502274
delta logL = -0.0119508785265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4546.99307497
delta logL = -3.11013536702e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2947       1.0000          .0000       5.0000    
     3 'Normalizat'    .95464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98491       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=   4546.993     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      211 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47859        .17388E-01** at limit **
   2  alpha         2.6520        3.6223        .41328        .13117E-05
   3  Normalizat    .95444        .71441E-02    .45596E-01   -.11076E-03
   4  Prefactor     .98488        .69744E-02    .46078E-01   -.98298E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.65197
  Normalizat = 0.954441
  Prefactor  = 0.984884
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.993     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    67.697        .65247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6520        2.9950        .50000        .60824E-01
   3  Normalizat    .95444        .87728E-01    .25741E-03   -.94573    
   4  Prefactor     .98488        .85630E-01    .24650E-03   -.93235    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.97469e-07
Minuit parameter uncertainties:
  1  7.77807e-05
  2  1010.59
  3  0.0877416
  4  0.085642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597037': 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): 102
logL (Free Index) = 4546.99306435
delta logL = 7.50948674977e-06

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  7.778e-05  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.652e+00  1.011e+03  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.849e-01  8.564e-02  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.544e-01  8.774e-02  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/597037/cmap_HighResolution_344822401_345081601_4FGL_J2258.1-2759_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-29 03:12:06.831606', job_id='597037', GAL2='0.98', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632910326.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='407' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 597037: <4FGL_J2258.1-2759_daily_bin407> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin407> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 03:00:24 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:00:25 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:00:25 2021
Terminated at Wed Sep 29 03:12:07 2021
Results reported at Wed Sep 29 03:12:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin407 344.529 -27.9843 344822401 345081601 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 :                                   532.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

