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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin272
RA = 344.529, Dec = -27.9843
tmin = 309830401, tmax = 310089601
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='595890', job_status='RUN', time_executed='2021-09-29 02:59:44.955295', time_epoch_executed='1632909584.96' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595890

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595890/ft1_4FGL_J2258.1-2759_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595890/ft1_4FGL_J2258.1-2759_daily_bin272.fits outfile=/scratch/kocevski/595890/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin272.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=309830401.0 tmax=310089601.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.49
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595890/ft1_filtered_4FGL_J2258.1-2759_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/595890/ltcube_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.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/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595890/ft1_filtered_4FGL_J2258.1-2759_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/595890/ltcube_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.fits outfile=/scratch/kocevski/595890/expmap_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.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/595890/ltcube_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.fits
.....................!
real 191.25
user 186.31
sys 4.61

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/595890/ft1_filtered_4FGL_J2258.1-2759_daily_bin272.fits scfile=/scratch/kocevski/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits outfile=/scratch/kocevski/595890/cmap_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595890/ft1_filtered_4FGL_J2258.1-2759_daily_bin272.fits scfile=/scratch/kocevski/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits outfile=/scratch/kocevski/595890/cmap_HighResolution_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.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.63
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595890/ft1_filtered_4FGL_J2258.1-2759_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/595890/ft2_4FGL_J2258.1-2759_daily_bin272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595890/Model_4FGL_J2258.1-2759_daily_bin272.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/595890/ft1_filtered_4FGL_J2258.1-2759_daily_bin272.fits.....................!
real 51.64
user 50.30
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7569       1.0000         .10000E-03   10000.    
     3 'norm      '    23.823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.772       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3397       1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2383       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6820       1.0000         .10000E-03   10000.    
    12 'norm      '    .27616       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4470       1.0000         .10000E-03   10000.    
    15 'norm      '    24.557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1045       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5843       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8591       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73976       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76824       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=   6647.341     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2390 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.613        11.488        .86574E-07   -.23528E-04
   2  Prefactor     4.7579        5.2294        .22146E-06    .43391E-04
   3  norm          23.822        18.214        .22527E-07   -.28553E-04
   4  Prefactor     5.2574        10.690        .18328E-06   -.31345E-04
   5  Prefactor     31.776        12.313        .16736E-06   -.81046E-04
   6  norm          3.3393        2.6945        .27888E-06   -.32944E-03
   7  Prefactor     83.060        51.659       -.17924E-05   -.18378E-03
   8  Prefactor     8.2430        9.0086       -.15586E-06   -.69835E-04
   9  norm          .10000E-03    .82374       -.14112E-06** at limit **
  10  Prefactor     13.120        12.050       -.15347E-05   -.62610E-04
  11  Prefactor     1.6976        10.258        .60731E-05   -.21204E-03
  12  norm          .27566        .39303       -.37368E-06   -.21234E-02
  13  Prefactor     .10000E-03    46.872       -.20425E-07** at limit **
  14  Prefactor     8.4453        9.3715       -.10642E-05   -.89130E-04
  15  norm          24.560        9.5434        .77145E-08   -.82205E-04
  16  Prefactor     7.1131        33.805        .49923E-06    .20592E-04
  17  norm          4.5845        2.4699        .19904E-07   -.72148E-04
  18  Prefactor     28.378        21.726        .45522E-07    .10745E-04
  19  Prefactor     37.688        61.773        .51908E-06    .37662E-04
  20  Prefactor     7.8574        20.609        .69725E-07   -.14381E-04
  21  Normalizat    .73923        .15405       -.47621E-06   -.75464E-04
  22  Prefactor     .76874        .14327        .47141E-07   -.11168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6129
  Prefactor  = 4.75795
  norm       = 23.8223
  Prefactor  = 5.25743
  Prefactor  = 31.7762
  norm       = 3.33935
  Prefactor  = 83.0604
  Prefactor  = 8.24296
  norm       = 0.0001
  Prefactor  = 13.1197
  Prefactor  = 1.69761
  norm       = 0.275656
  Prefactor  = 0.0001
  Prefactor  = 8.44527
  norm       = 24.56
  Prefactor  = 7.11315
  norm       = 4.58452
  Prefactor  = 28.3782
  Prefactor  = 37.6884
  Prefactor  = 7.85736
  Normalizat = 0.739235
  Prefactor  = 0.768737
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.341     FROM HESSE     STATUS=OK           358 CALLS     2748 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.613        11.486        .12299E-03   -1.5056    
   2  Prefactor     4.7579        5.2211        .18448E-03   -1.5272    
   3  norm          23.822        18.207        .82068E-04   -1.4731    
   4  Prefactor     5.2574        10.676        .17530E-03   -1.5249    
   5  Prefactor     31.776        12.324        .71085E-04   -1.4580    
   6  norm          3.3393        2.6945        .95967E-04   -1.5342    
   7  Prefactor     83.060        51.860        .44063E-04   -1.3883    
   8  Prefactor     8.2430        9.0456        .13968E-03   -1.5134    
   9  norm          .10000E-03    .82825        .72258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.120        11.887        .11055E-03   -1.4983    
  11  Prefactor     1.6976        10.437        .32477E-03   -1.5447    
  12  norm          .27566        .36220        .52447E-03   -1.5603    
  13  Prefactor     .10000E-03    47.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4453        9.1080        .13793E-03   -1.5127    
  15  norm          24.560        9.5519        .80834E-04   -1.4716    
  16  Prefactor     7.1131        33.935        .15050E-03   -1.5174    
  17  norm          4.5845        2.4673        .89498E-04   -1.5280    
  18  Prefactor     28.378        21.735        .75208E-04   -1.4642    
  19  Prefactor     37.688        61.868        .65299E-04   -1.4479    
  20  Prefactor     7.8574        20.604        .14303E-03   -1.5147    
  21  Normalizat    .73923        .18088        .23701E-03   -1.0236    
  22  Prefactor     .76874        .16760        .23201E-03   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77714e-10
Minuit parameter uncertainties:
  1  11.4883
  2  5.22161
  3  18.2112
  4  10.6795
  5  12.325
  6  2.69462
  7  51.8883
  8  9.04713
  9  8.9733e-07
  10  11.8886
  11  8.42055
  12  0.362201
  13  1.33287e-05
  14  9.10951
  15  9.55249
  16  31.1016
  17  2.46731
  18  21.7411
  19  61.9734
  20  20.6222
  21  0.181031
  22  0.167714
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.757e-01  3.622e-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:  7.687e-01  1.677e-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:  7.392e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 5.89e-06 +/- 7.74e-06

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

Saving results to:
/scratch/kocevski/595890/likelihoodResults_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.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) = 6647.33104162
delta logL = 0.00961234730767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6647.33071733
delta logL = 0.00993663227564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28031       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1039       1.0000          .0000       5.0000    
     3 'Normalizat'    .74181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76744       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6647.331     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28032        .33030        .54256E-03    .11560E-02
   2  alpha         2.1038        1.2341        .33672E-01    .28131E-04
   3  Normalizat    .74189        .16369        .23665E-03   -.83542E-04
   4  Prefactor     .76736        .16356        .23221E-03    .24058E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.280324
  alpha      = 2.10375
  Normalizat = 0.741889
  Prefactor  = 0.767365
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.331     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28032        .33001        .21702E-04   -1.5602    
   2  alpha         2.1038        1.2336        .13469E-02   -.15917    
   3  Normalizat    .74189        .16376        .94660E-05   -1.0226    
   4  Prefactor     .76736        .16368        .92885E-05   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83382e-10
Minuit parameter uncertainties:
  1  0.330009
  2  1.29172
  3  0.163865
  4  0.163784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595890': 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) = 6647.3307172
delta logL = 0.00993676610324

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.803e-01  3.300e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.104e+00  1.292e+00  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:  7.674e-01  1.638e-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:  7.419e-01  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.10 +/- 1.29
Photon Flux (Free Index): 1.30e-08 +/- 2.33e-08
Energy Flux (Free Index): 5.96e-06 +/- 7.05e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/595890/cmap_HighResolution_309830401_310089601_4FGL_J2258.1-2759_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='5.96e-06', photon_flux_error='2.05e-08', dlogl='9.94e-03', energy_flux='5.89e-06', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-29 03:10:38.886144', photon_index_error2='1.29', photon_index2='2.10', ts='1.31', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='6.29e-08', energy_flux_error2='7.05e-06', EG='0.74', time_epoch_completed='1632910238.89', return_code='0', job_id='595890', GAL2='0.77', EG2='0.74', return_code2='0', energy_flux_error='7.74e-06', photon_flux_error2='2.33e-08', ts2='1.35', photon_index='2.29' WHERE bin_id='272' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 595890: <4FGL_J2258.1-2759_daily_bin272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin272 344.529 -27.9843 309830401 310089601 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 :                                   650.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

