/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 3 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1258.6-1759_daily_bin64
RA = 194.663, Dec = -17.9958
tmin = 255916801, tmax = 256176001
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='51157', job_status='RUN', time_executed='2021-09-06 12:21:06.133977', time_epoch_executed='1630956066.13' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/51157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/51157/ft1_4FGL_J1258.6-1759_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/51157/ft1_4FGL_J1258.6-1759_daily_bin64.fits outfile=/scratch/kocevski/51157/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin64.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.49
user 1.29
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.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/51157/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin64.fits evtable="EVENTS" outfile="/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/51157/ltcube_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.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/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits
.....................!
real 13.49
user 13.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/51157/ltcube_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.fits outfile=/scratch/kocevski/51157/expmap_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.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/51157/ltcube_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.fits
.....................!
real 192.48
user 185.27
sys 5.06

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1258.6-1759 @ 194.663 -17.9958

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits scfile=/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits outfile=/scratch/kocevski/51157/cmap_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.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=194.663 yref=-17.9958 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits scfile=/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits outfile=/scratch/kocevski/51157/cmap_HighResolution_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.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=194.663 yref=-17.9958 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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/51157/Model_4FGL_J1258.6-1759_daily_bin64.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/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits.....................!
real 90.04
user 88.58
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits', '/scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits', expMap='/scratch/kocevski/51157/expmap_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.fits', expCube='/scratch/kocevski/51157/ltcube_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/51157/Model_4FGL_J1258.6-1759_daily_bin64.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.6-1759'

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  4.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/51157/ft1_filtered_4FGL_J1258.6-1759_daily_bin64.fits
Spacecraft file(s): /scratch/kocevski/51157/ft2_4FGL_J1258.6-1759_daily_bin64.fits
Exposure map: /scratch/kocevski/51157/expmap_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.fits
Exposure cube: /scratch/kocevski/51157/ltcube_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/51157/Model_4FGL_J1258.6-1759_daily_bin64.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) = 12008.8262093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.522       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3873       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9444       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.896       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3590       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.005       1.0000         .10000E-03   10000.    
    17 'norm      '    16.868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.608       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8671       1.0000         .10000E-03   10000.    
    21 'norm      '    18.384       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6343       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12008.79     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2162 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.192       -.10922E-05** at limit **
   2  Prefactor     5.6090        5.8477       -.85397E-07   -.37775E-04
   3  Prefactor     5.1900        1.8393        .89548E-08    .15025E-03
   4  Prefactor     .10000E-03    3.1569        .67364E-06** at limit **
   5  Prefactor     12.522        9.8656       -.35346E-07   -.15365E-04
   6  norm          3.3873        .96109        .13395E-07   -.42670E-04
   7  Prefactor     .10000E-03    19.078        .73258E-07** at limit **
   8  norm          9.9445        6.1800        .33530E-07   -.20014E-03
   9  norm          .10000E-03    3.1699       -.47462E-06** at limit **
  10  Prefactor     13.895        4.7328        .12192E-05    .15331E-03
  11  norm          1.3589        1.1117       -.22416E-07    .77330E-04
  12  norm          .10000E-03    3.1956       -.10060E-05** at limit **
  13  Prefactor     .10000E-03    3.5617        .69798E-07** at limit **
  14  Prefactor     2.5600        1.2674        .60135E-07   -.11514E-02
  15  Prefactor     .10000E-03    8.6917       -.29229E-06** at limit **
  16  norm          12.005        3.7829       -.50514E-07    .65453E-05
  17  norm          16.868        6.7498       -.43822E-07   -.23469E-06
  18  Prefactor     .10000E-03    6.4034       -.45952E-07** at limit **
  19  Prefactor     31.608        19.398       -.12928E-06   -.22648E-05
  20  Prefactor     3.8669        6.1525       -.12553E-06   -.25891E-04
  21  norm          18.384        5.0250       -.10106E-06   -.30711E-05
  22  Normalizat    1.6342        .18914       -.67690E-06    .45037E-04
  23  Prefactor     .67584        .90881E-01    .25373E-06   -.25811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.60897
  Prefactor  = 5.18996
  Prefactor  = 0.0001
  Prefactor  = 12.5221
  norm       = 3.38731
  Prefactor  = 0.0001
  norm       = 9.94445
  norm       = 0.0001
  Prefactor  = 13.8952
  norm       = 1.35894
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.55999
  Prefactor  = 0.0001
  norm       = 12.0052
  norm       = 16.8683
  Prefactor  = 0.0001
  Prefactor  = 31.6077
  Prefactor  = 3.86689
  norm       = 18.3843
  Normalizat = 1.63422
  Prefactor  = 0.675843
 **********
 **   18 **HESSE 
 **********

 FCN=   12008.79     FROM HESSE     STATUS=OK           376 CALLS     2538 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6090        5.8496        .16963E-03   -1.5234    
   3  Prefactor     5.1900        1.8407        .41731E-03   -1.5252    
   4  Prefactor     .10000E-03    3.1620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.522        9.9231        .11320E-03   -1.5000    
   6  norm          3.3873        .96091        .54835E-04   -1.5340    
   7  Prefactor     .10000E-03    19.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9445        6.2429        .63534E-03   -1.5077    
   9  norm          .10000E-03    3.3747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.895        4.7479        .10745E-03   -1.4962    
  11  norm          1.3589        1.1122        .18737E-03   -1.5475    
  12  norm          .10000E-03    3.1975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5600        4.1757        .12758E-02   -1.5388    
  15  Prefactor     .10000E-03    8.7218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.005        3.7852        .10834E-03   -1.5015    
  17  norm          16.868        6.7569        .97518E-04   -1.4886    
  18  Prefactor     .10000E-03    6.4890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.608        19.399        .71270E-04   -1.4583    
  20  Prefactor     3.8669        6.1409        .20520E-03   -1.5315    
  21  norm          18.384        5.0242        .93411E-04   -1.4850    
  22  Normalizat    1.6342        .22022        .31530E-03   -.74074    
  23  Prefactor     .67584        .10489        .22812E-03   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04999e-09
Minuit parameter uncertainties:
  1  3.32961e-06
  2  5.85021
  3  1.84076
  4  1.74132e-08
  5  9.92441
  6  0.960914
  7  3.02224e-05
  8  6.24326
  9  7.33141e-05
  10  4.74802
  11  1.11219
  12  4.12113e-08
  13  2.14104e-06
  14  4.17613
  15  1.10116e-05
  16  3.78531
  17  6.75717
  18  6.27547e-06
  19  19.4029
  20  6.14191
  21  5.02431
  22  0.220351
  23  0.104917
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  9.944e+00  6.243e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  6.758e-01  1.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.634e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 194.663 -17.996
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.07e-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) = 12008.6008393
delta logL = 0.191148291018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12008.5955021
delta logL = 0.196485480765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7676       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6627       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12008.60     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      277 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7731        6.7649        .67685E-03    .21519E-03
   2  alpha         2.6624        .73987        .17549E-01    .30668E-03
   3  Normalizat    1.6078        .21559        .31735E-03    .35824E-06
   4  Prefactor     .68325        .10437        .22699E-03    .50084E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.77312
  alpha      = 2.6624
  Normalizat = 1.60785
  Prefactor  = 0.683251
 **********
 **   18 **HESSE 
 **********

 FCN=   12008.60     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7731        6.3419        .13537E-03   -1.5115    
   2  alpha         2.6624        .69432        .35099E-02    .65004E-01
   3  Normalizat    1.6078        .21537        .12694E-04   -.74791    
   4  Prefactor     .68325        .10431        .90797E-05   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20793e-11
Minuit parameter uncertainties:
  1  6.34242
  2  0.703614
  3  0.215494
  4  0.104336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/51157': 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) = 12008.5955017
delta logL = 0.196485883573

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  8.773e+00  6.342e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.662e+00  7.036e-01  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  6.833e-01  1.043e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.608e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 2.66 +/- 0.70
Photon Flux (Free Index): 6.50e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.69e-05 +/- 9.68e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/51157/cmap_HighResolution_255916801_256176001_4FGL_J1258.6-1759_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.69e-05', photon_flux_error='2.84e-08', dlogl='1.96e-01', energy_flux='1.70e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-06 12:35:25.474584', photon_index_error2='0.70', photon_index2='2.66', ts='4.54', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='9.68e-06', EG='1.63', time_epoch_completed='1630956925.47', return_code='0', job_id='51157', GAL2='0.68', EG2='1.61', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.63e-08', ts2='4.95', photon_index='2.23' WHERE bin_id='64' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:35:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 51157: <4FGL_J1258.6-1759_daily_bin64> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin64> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:20:40 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:20:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:20:41 2021
Terminated at Mon Sep  6 12:35:28 2021
Results reported at Mon Sep  6 12:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin64 194.663 -17.9958 255916801 256176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.6-1759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   850.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             344.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

