/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 53 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1258.6-1759_daily_bin498
RA = 194.663, Dec = -17.9958
tmin = 368409601, tmax = 368668801
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='54469', job_status='RUN', time_executed='2021-09-06 12:34:16.963350', time_epoch_executed='1630956856.96' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54469/ft1_4FGL_J1258.6-1759_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54469/ft1_4FGL_J1258.6-1759_daily_bin498.fits outfile=/scratch/kocevski/54469/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin498.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=368409601.0 tmax=368668801.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 10.60
user 3.11
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.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/54469/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.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 2.28
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/54469/ltcube_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.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/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits
.....................!
real 13.42
user 11.43
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/54469/ltcube_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.fits outfile=/scratch/kocevski/54469/expmap_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.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/54469/ltcube_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.fits
.....................!
real 196.95
user 184.94
sys 5.21

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.fits scfile=/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits outfile=/scratch/kocevski/54469/cmap_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.fits scfile=/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits outfile=/scratch/kocevski/54469/cmap_HighResolution_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.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.77
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/54469/ft2_4FGL_J1258.6-1759_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54469/Model_4FGL_J1258.6-1759_daily_bin498.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/54469/ft1_filtered_4FGL_J1258.6-1759_daily_bin498.fits.....................!
real 57.40
user 55.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .96386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9213       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.891       1.0000         .10000E-03   10000.    
     6 'norm      '    .90650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.134       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0515       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6716       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.415       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5239       1.0000         .10000E-03   10000.    
    21 'norm      '    .14568E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7641       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82791       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=   6915.775     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2159 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.427        .73241E-05** at limit **
   2  Prefactor     .95782        14.469       -.39851E-05   -.26112E-03
   3  Prefactor     7.9646        3.5426        .40396E-06    .50366E-03
   4  Prefactor     7.9175        15.592       -.88419E-06   -.79903E-05
   5  Prefactor     27.894        16.650        .48105E-06    .12918E-03
   6  norm          .90621        1.2204        .59940E-07   -.22406E-04
   7  Prefactor     .10000E-03    35.504       -.18995E-05** at limit **
   8  norm          16.133        9.4299        .28518E-07    .24255E-04
   9  norm          3.2952        4.0736       -.18488E-05   -.18687E-03
  10  Prefactor     .10000E-03    2.3314        .30028E-06** at limit **
  11  norm          .10000E-03    .96882        .17704E-06** at limit **
  12  norm          .10000E-03    4.9593        .91919E-06** at limit **
  13  Prefactor     8.0449        12.412        .27360E-06    .90054E-05
  14  Prefactor     .10000E-03    11.777       -.83806E-06** at limit **
  15  Prefactor     .10000E-03    11.486        .11847E-06** at limit **
  16  norm          2.6727        3.8707        .71207E-06    .14212E-04
  17  norm          7.5651        7.0322        .12708E-06    .43247E-04
  18  Prefactor     13.417        12.796       -.78866E-06    .25702E-04
  19  Prefactor     .10000E-03    17.711       -.52141E-05** at limit **
  20  Prefactor     2.5278        7.4263        .26995E-05   -.64356E-03
  21  norm          .10004E-03    3.1447       -.87716E-06** at limit **
  22  Normalizat    1.7643        .28022        .60058E-06    .13223E-03
  23  Prefactor     .82788        .12976        .16101E-06    .22679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.957816
  Prefactor  = 7.96458
  Prefactor  = 7.91752
  Prefactor  = 27.8941
  norm       = 0.906211
  Prefactor  = 0.0001
  norm       = 16.1332
  norm       = 3.2952
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.0449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67269
  norm       = 7.56512
  Prefactor  = 13.4166
  Prefactor  = 0.0001
  Prefactor  = 2.52779
  norm       = 0.00010004
  Normalizat = 1.76428
  Prefactor  = 0.827881
 **********
 **   18 **HESSE 
 **********

 FCN=   6915.775     FROM HESSE     STATUS=OK           376 CALLS     2535 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .95782        15.664        .52149E-03   -1.5512    
   3  Prefactor     7.9646        3.4933        .92095E-04   -1.5143    
   4  Prefactor     7.9175        15.614        .14246E-03   -1.5145    
   5  Prefactor     27.894        16.708        .75859E-04   -1.4651    
   6  norm          .90621        1.1148        .10013E-02   -1.5518    
   7  Prefactor     .10000E-03    35.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.133        9.4374        .99713E-04   -1.4904    
   9  norm          3.2952        4.0747        .18085E-03   -1.5345    
  10  Prefactor     .10000E-03    2.3445        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .97354        .79925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9599        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0449        12.407        .14130E-03   -1.5141    
  14  Prefactor     .10000E-03    12.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6727        3.8409        .17761E-03   -1.5381    
  17  norm          7.5651        7.0137        .14581E-03   -1.5158    
  18  Prefactor     13.417        13.427        .10936E-03   -1.4975    
  19  Prefactor     .10000E-03    17.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5278        18.583        .12857E-02   -1.5390    
  21  norm          .10004E-03    18.449        .28306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7643        .33149        .33904E-03   -.70600    
  23  Prefactor     .82788        .15345        .22224E-03   -.98709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75068e-09
Minuit parameter uncertainties:
  1  0.000138116
  2  7.74877
  3  3.4934
  4  15.6219
  5  16.7105
  6  1.11479
  7  1.58549e-05
  8  9.4383
  9  4.07502
  10  1.1075e-05
  11  1.02793e-06
  12  7.52513e-06
  13  12.4107
  14  3.62586e-05
  15  4.21704e-05
  16  3.84129
  17  7.01447
  18  13.4296
  19  9.13526e-05
  20  13.7132
  21  0.00172237
  22  0.331908
  23  0.153526
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.613e+01  9.438e+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:  8.279e-01  1.535e-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.764e+00  3.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.36
Ra Dec: 194.663 -17.996
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.33e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.62e-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) = 6914.52080855
delta logL = 1.25393565416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6914.24142722
delta logL = 1.53331698614

Fit tolerance = 1e-08

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

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

 FCN=   6914.241     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0500        5.8270        .33290E-02   -.25744E-02
   2  alpha         1.1561        .37329        .32043       -.41175E-04
   3  Normalizat    1.8222        .26948        .75648E-01    .33505E-05
   4  Prefactor     .81475        .12807        .43908E-01    .12653E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.04995
  alpha      = 1.15606
  Normalizat = 1.82221
  Prefactor  = 0.814755
 **********
 **   18 **HESSE 
 **********

 FCN=   6914.241     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0500        7.5528        .66580E-03   -1.5106    
   2  alpha         1.1561        .50401        .13548E-01   -.56756    
   3  Normalizat    1.8222        .31793        .33470E-03   -.69085    
   4  Prefactor     .81475        .15121        .22376E-03   -.99187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50363e-11
Minuit parameter uncertainties:
  1  7.55364
  2  0.508944
  3  0.318289
  4  0.15129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54469': 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) = 6914.24142598
delta logL = 1.53331822191

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  9.050e+00  7.554e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.156e+00  5.089e-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.148e-01  1.513e-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.822e+00  3.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.37
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 1.16 +/- 0.51
Photon Flux (Free Index): 2.32e-08 +/- 1.78e-08
Energy Flux (Free Index): 6.06e-05 +/- 5.72e-05

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/54469/cmap_HighResolution_368409601_368668801_4FGL_J1258.6-1759_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.33e-08', energy_flux2='6.06e-05', photon_flux_error='4.29e-08', dlogl='1.53e+00', energy_flux='2.76e-05', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-09-06 12:44:40.461563', photon_index_error2='0.51', photon_index2='1.16', ts='9.36', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='5.72e-05', EG='1.76', time_epoch_completed='1630957480.46', return_code='0', job_id='54469', GAL2='0.81', EG2='1.82', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='1.78e-08', ts2='12.37', photon_index='2.23' WHERE bin_id='498' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:44:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 54469: <4FGL_J1258.6-1759_daily_bin498> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin498> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:32:22 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:32:24 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:32:24 2021
Terminated at Mon Sep  6 12:44:41 2021
Results reported at Mon Sep  6 12:44:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin498 194.663 -17.9958 368409601 368668801 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 :                                   597.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            739 sec.

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

