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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin381
RA = 194.663, Dec = -17.9958
tmin = 338083201, tmax = 338342401
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='52796', job_status='RUN', time_executed='2021-09-06 12:28:03.278958', time_epoch_executed='1630956483.28' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52796

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52796/ft1_4FGL_J1258.6-1759_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52796/ft1_4FGL_J1258.6-1759_daily_bin381.fits outfile=/scratch/kocevski/52796/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin381.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.74
user 6.39
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.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/52796/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin381.fits evtable="EVENTS" outfile="/scratch/kocevski/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.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 1.03
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/52796/ltcube_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.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/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits
.....................!
real 12.50
user 11.09
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/52796/ltcube_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.fits outfile=/scratch/kocevski/52796/expmap_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.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/52796/ltcube_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.fits
.....................!
real 193.99
user 185.26
sys 5.60

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/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits scfile=/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits outfile=/scratch/kocevski/52796/cmap_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits scfile=/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits outfile=/scratch/kocevski/52796/cmap_HighResolution_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52796/Model_4FGL_J1258.6-1759_daily_bin381.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/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits.....................!
real 66.11
user 62.59
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits', '/scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits', expMap='/scratch/kocevski/52796/expmap_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.fits', expCube='/scratch/kocevski/52796/ltcube_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/52796/Model_4FGL_J1258.6-1759_daily_bin381.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/52796/ft1_filtered_4FGL_J1258.6-1759_daily_bin381.fits
Spacecraft file(s): /scratch/kocevski/52796/ft2_4FGL_J1258.6-1759_daily_bin381.fits
Exposure map: /scratch/kocevski/52796/expmap_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.fits
Exposure cube: /scratch/kocevski/52796/ltcube_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/52796/Model_4FGL_J1258.6-1759_daily_bin381.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) = 7796.52750797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
     6 'norm      '    8.3557       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.512       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1951       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6090       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4155       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .16398       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3171       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84705       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=   7796.421     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2197 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.312        42.225       -.10557E-04   -.95169E-05
   2  Prefactor     .10000E-03    2.1651        .15231E-06** at limit **
   3  Prefactor     8.7270        2.7701        .11911E-07    .16833E-04
   4  Prefactor     .10000E-03    21.376       -.65688E-05** at limit **
   5  Prefactor     11.397        13.101       -.20729E-06    .20571E-05
   6  norm          8.3553        1.6783        .41247E-08    .17057E-03
   7  Prefactor     .10000E-03    42.320       -.13496E-04** at limit **
   8  norm          26.510        11.717       -.12213E-06    .40509E-04
   9  norm          1.5043        2.7883        .65492E-07   -.20202E-02
  10  Prefactor     2.1948        4.8377        .11281E-06   -.12915E-02
  11  norm          1.6091        1.5685       -.12339E-07    .17966E-04
  12  norm          7.3941        6.9347       -.68463E-07    .24261E-05
  13  Prefactor     .10000E-03    2.2431        .95102E-06** at limit **
  14  Prefactor     4.4156        4.9471        .42891E-06   -.13489E-04
  15  Prefactor     .10000E-03    6.7470       -.57040E-07** at limit **
  16  norm          .10000E-03    1.3454       -.77995E-08** at limit **
  17  norm          .10000E-03    2.2184       -.10445E-05** at limit **
  18  Prefactor     .10000E-03    3.4088        .14407E-07** at limit **
  19  Prefactor     .10000E-03    32.410        .16802E-04** at limit **
  20  Prefactor     .10000E-03    3.1061       -.94299E-07** at limit **
  21  norm          .15097        2.1487        .12036E-05   -.13879E-02
  22  Normalizat    1.3170        .23673        .42737E-06   -.75869E-04
  23  Prefactor     .84708        .11381       -.30940E-07   -.14141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.3123
  Prefactor  = 0.0001
  Prefactor  = 8.72696
  Prefactor  = 0.0001
  Prefactor  = 11.3973
  norm       = 8.35534
  Prefactor  = 0.0001
  norm       = 26.5097
  norm       = 1.50433
  Prefactor  = 2.19481
  norm       = 1.60906
  norm       = 7.39414
  Prefactor  = 0.0001
  Prefactor  = 4.41558
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.15097
  Normalizat = 1.31704
  Prefactor  = 0.847079
 **********
 **   18 **HESSE 
 **********

 FCN=   7796.421     FROM HESSE     STATUS=OK           374 CALLS     2571 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.312        42.336        .29456E-03   -1.4346    
   2  Prefactor     .10000E-03    2.1702        .12684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7270        2.7704        .80102E-04   -1.5117    
   4  Prefactor     .10000E-03    21.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.397        13.220        .11867E-03   -1.5033    
   6  norm          8.3553        1.6812        .48690E-04   -1.5130    
   7  Prefactor     .10000E-03    42.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.510        11.743        .77803E-04   -1.4678    
   9  norm          1.5043        4.8829        .15224E-02   -1.5463    
  10  Prefactor     2.1948        4.6869        .12135E-02   -1.5412    
  11  norm          1.6091        1.5866        .10628E-03   -1.5454    
  12  norm          7.3941        6.9363        .14750E-03   -1.5164    
  13  Prefactor     .10000E-03    2.2458        .12914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4156        4.9459        .19165E-03   -1.5288    
  15  Prefactor     .10000E-03    6.7900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3850        .19994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2363        .12843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4184        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1223        .15196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .15097        17.749        .24457E-02   -1.5630    
  22  Normalizat    1.3170        .28205        .33954E-03   -.83059    
  23  Prefactor     .84708        .13639        .20356E-03   -.98016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72872e-08
Minuit parameter uncertainties:
  1  42.364
  2  7.54035e-08
  3  2.77048
  4  6.37971e-05
  5  13.2237
  6  1.68119
  7  3.20001e-05
  8  11.7437
  9  4.88421
  10  4.68764
  11  1.58661
  12  6.93701
  13  3.15742e-07
  14  4.94636
  15  4.67199e-06
  16  7.83346e-07
  17  1.13803e-06
  18  3.56537e-06
  19  0.000168916
  20  4.22382e-06
  21  3.27379
  22  0.282376
  23  0.136447
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  2.651e+01  1.174e+01  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:  8.471e-01  1.364e-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.317e+00  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.81
Ra Dec: 194.663 -17.996
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.33e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 2.01e-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) = 7795.26070873
delta logL = 1.16077141271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7795.22457769
delta logL = 1.19690244746

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7795.225     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      275 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.240        12.176        .93777E-04    .10751E-02
   2  alpha         2.9724        .55432        .94326E-02    .14892E-03
   3  Normalizat    1.2078        .28081        .35169E-03   -.55439E-04
   4  Prefactor     .88135        .13623        .19987E-03   -.36320E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.2404
  alpha      = 2.97236
  Normalizat = 1.20783
  Prefactor  = 0.881351
 **********
 **   18 **HESSE 
 **********

 FCN=   7795.225     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.240        11.177        .37511E-05   -1.4854    
   2  alpha         2.9724        .50909        .37730E-03    .19009    
   3  Normalizat    1.2078        .28015        .14068E-04   -.86361    
   4  Prefactor     .88135        .13594        .39974E-04   -.96796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66118e-10
Minuit parameter uncertainties:
  1  11.1784
  2  0.512812
  3  0.280499
  4  0.135995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52796': 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) = 7795.22457753
delta logL = 1.19690260553

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.824e+01  1.118e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.972e+00  5.128e-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:  8.814e-01  1.360e-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.208e+00  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.33
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 2.97 +/- 0.51
Photon Flux (Free Index): 2.02e-07 +/- 8.28e-08
Energy Flux (Free Index): 4.38e-05 +/- 1.61e-05

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/52796/cmap_HighResolution_338083201_338342401_4FGL_J1258.6-1759_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='4.38e-05', photon_flux_error='5.33e-08', dlogl='1.20e+00', energy_flux='4.54e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-06 12:39:46.582928', photon_index_error2='0.51', photon_index2='2.97', ts='11.81', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.32', time_epoch_completed='1630957186.58', return_code='0', job_id='52796', GAL2='0.88', EG2='1.21', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='8.28e-08', ts2='14.33', photon_index='2.23' WHERE bin_id='381' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 52796: <4FGL_J1258.6-1759_daily_bin381> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin381> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:25:45 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:25:46 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:25:46 2021
Terminated at Mon Sep  6 12:39:47 2021
Results reported at Mon Sep  6 12:39:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin381 194.663 -17.9958 338083201 338342401 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

