/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 73 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 = 7390
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1258.6-1759_daily_bin868
RA = 194.663, Dec = -17.9958
tmin = 464313601, tmax = 464572801
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='55976', job_status='RUN', time_executed='2021-09-06 12:38:49.703707', time_epoch_executed='1630957129.7' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55976/ft1_4FGL_J1258.6-1759_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55976/ft2_4FGL_J1258.6-1759_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55976/ft1_4FGL_J1258.6-1759_daily_bin868.fits outfile=/scratch/kocevski/55976/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin868.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=464313601.0 tmax=464572801.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.78
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55976/ft1_filtered_4FGL_J1258.6-1759_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/55976/ft2_4FGL_J1258.6-1759_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/55976/ltcube_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.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/55976/ft2_4FGL_J1258.6-1759_daily_bin868.fits
.....................!
real 12.17
user 11.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55976/ft1_filtered_4FGL_J1258.6-1759_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/55976/ft2_4FGL_J1258.6-1759_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/55976/ltcube_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.fits outfile=/scratch/kocevski/55976/expmap_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.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/55976/ltcube_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.fits
.....................!
real 195.77
user 187.38
sys 5.04

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/55976/ft1_filtered_4FGL_J1258.6-1759_daily_bin868.fits scfile=/scratch/kocevski/55976/ft2_4FGL_J1258.6-1759_daily_bin868.fits outfile=/scratch/kocevski/55976/cmap_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.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.88
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55976/ft1_filtered_4FGL_J1258.6-1759_daily_bin868.fits scfile=/scratch/kocevski/55976/ft2_4FGL_J1258.6-1759_daily_bin868.fits outfile=/scratch/kocevski/55976/cmap_HighResolution_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5583       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3243       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .92208E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.572       1.0000         .10000E-03   10000.    
     9 'norm      '    8.9420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
    11 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.388       1.0000         .10000E-03   10000.    
    17 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16457E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7971       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89706       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2056       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=   8091.484     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2523 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.965        .11704E-07** at limit **
   2  Prefactor     4.5588        4.9398        .71708E-07   -.28995E-05
   3  Prefactor     7.3243        2.7199        .14007E-07   -.12488E-04
   4  Prefactor     1.2289        7.0344        .27030E-05    .95539E-05
   5  Prefactor     .10000E-03    4.8953       -.46135E-08** at limit **
   6  norm          1.2546        .82841       -.41434E-08    .14861E-03
   7  Prefactor     .10001E-03    914.01       -.16909E-04** at limit **
   8  norm          12.572        10.198       -.66165E-07    .67806E-05
   9  norm          8.9304        7.4229       -.13632E-05    .10921E-03
  10  Prefactor     10.541        7.0132       -.24656E-06    .12940E-03
  11  norm          .10000E-03    1.3464        .10633E-06** at limit **
  12  norm          10.487        9.4599        .26675E-07   -.46757E-06
  13  Prefactor     .10000E-03    2.9108        .10147E-07** at limit **
  14  Prefactor     .10000E-03    4.7652        .44291E-07** at limit **
  15  Prefactor     .10000E-03    10.117       -.24260E-07** at limit **
  16  norm          17.389        5.3280        .64494E-07   -.25744E-04
  17  norm          .10000E-03    9.8133        .50860E-07** at limit **
  18  Prefactor     21.957        27.111       -.62437E-06   -.40023E-05
  19  Prefactor     .10000E-03    57.939       -.30410E-07** at limit **
  20  Prefactor     3.7952        22.445        .18355E-05   -.95326E-06
  21  norm          .10000E-03    1.7913        .38173E-07** at limit **
  22  Normalizat    .89706        .25298       -.21762E-06   -.17628E-04
  23  Prefactor     1.2056        .12867       -.53485E-06   -.72990E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.55883
  Prefactor  = 7.32428
  Prefactor  = 1.22892
  Prefactor  = 0.0001
  norm       = 1.25461
  Prefactor  = 0.000100007
  norm       = 12.5718
  norm       = 8.93039
  Prefactor  = 10.5409
  norm       = 0.0001
  norm       = 10.487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.389
  norm       = 0.0001
  Prefactor  = 21.9574
  Prefactor  = 0.0001
  Prefactor  = 3.79525
  norm       = 0.0001
  Normalizat = 0.897061
  Prefactor  = 1.20555
 **********
 **   18 **HESSE 
 **********

 FCN=   8091.484     FROM HESSE     STATUS=OK           374 CALLS     2897 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5588        4.9376        .18855E-03   -1.5281    
   3  Prefactor     7.3243        2.7199        .86001E-04   -1.5167    
   4  Prefactor     1.2289        7.0804        .40617E-03   -1.5486    
   5  Prefactor     .10000E-03    4.9093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.2546        .82897        .64084E-04   -1.5484    
   7  Prefactor     .10001E-03    919.07        .41630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.572        10.195        .11297E-03   -1.4999    
   9  norm          8.9304        7.3579        .13404E-03   -1.5110    
  10  Prefactor     10.541        6.9979        .12340E-03   -1.5059    
  11  norm          .10000E-03    4.3572        .20305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.487        9.4601        .12373E-03   -1.5060    
  13  Prefactor     .10000E-03    2.9142        .14987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.389        5.3088        .96048E-04   -1.4874    
  17  norm          .10000E-03    10.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.957        26.284        .85492E-04   -1.4770    
  19  Prefactor     .10000E-03    58.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7952        21.121        .20715E-03   -1.5318    
  21  norm          .10000E-03    1.7950        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89706        .28060        .43042E-03   -.96563    
  23  Prefactor     1.2056        .14379        .19214E-03   -.86161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82344e-11
Minuit parameter uncertainties:
  1  5.49149e-06
  2  4.93802
  3  2.71993
  4  5.90039
  5  5.17676e-07
  6  0.82898
  7  0.00500622
  8  10.1961
  9  7.35864
  10  6.99847
  11  3.6564e-05
  12  9.46144
  13  1.2583e-06
  14  7.54941e-06
  15  5.62977e-06
  16  5.30899
  17  1.16226e-05
  18  26.2983
  19  5.28984e-05
  20  17.9158
  21  9.27939e-07
  22  0.281055
  23  0.143837
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.257e+01  1.020e+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:  1.206e+00  1.438e-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:  8.971e-01  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 194.663 -17.996
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.71e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.75e-05

TS (Fixed Index): 2.45
Ra Dec: 194.663 -17.996
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55976/likelihoodResults_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.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) = 8091.39203285
delta logL = 0.0923570158302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8091.37369946
delta logL = 0.11069040341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.754       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6942       1.0000          .0000       5.0000    
     3 'Normalizat'    .86077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2172       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=   8091.374     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      254 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.738        12.537        .61089E-03   -.58175E-04
   2  alpha         2.6973        1.1778        .19101E-01    .18481E-03
   3  Normalizat    .86074        .29593        .43859E-03   -.10081E-03
   4  Prefactor     1.2172        .14698        .19134E-03   -.10612E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7382
  alpha      = 2.69727
  Normalizat = 0.860736
  Prefactor  = 1.21724
 **********
 **   18 **HESSE 
 **********

 FCN=   8091.374     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.738        11.240        .24435E-04   -1.5052    
   2  alpha         2.6973        1.0619        .38202E-02    .78989E-01
   3  Normalizat    .86074        .29322        .17544E-04   -.97854    
   4  Prefactor     1.2172        .14599        .38268E-04   -.85803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25536e-11
Minuit parameter uncertainties:
  1  11.2421
  2  1.09701
  3  0.293767
  4  0.146039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55976': 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) = 8091.37369416
delta logL = 0.110695711587

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.074e+01  1.124e+01  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.697e+00  1.097e+00  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:  1.217e+00  1.460e-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:  8.607e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 2.70 +/- 1.10
Photon Flux (Free Index): 8.31e-08 +/- 8.21e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.59e-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/55976/cmap_HighResolution_464313601_464572801_4FGL_J1258.6-1759_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-05', comment='SUCCESS', photon_flux='5.71e-08', energy_flux2='2.11e-05', photon_flux_error='4.63e-08', dlogl='1.11e-01', energy_flux='2.15e-05', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-09-06 12:51:47.372213', photon_index_error2='1.10', photon_index2='2.70', ts='2.45', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.59e-05', EG='0.90', time_epoch_completed='1630957907.37', return_code='0', job_id='55976', GAL2='1.22', EG2='0.86', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='8.21e-08', ts2='2.75', photon_index='2.23' WHERE bin_id='868' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 55976: <4FGL_J1258.6-1759_daily_bin868> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin868> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 12:37:13 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:37:14 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:37:14 2021
Terminated at Mon Sep  6 12:51:48 2021
Results reported at Mon Sep  6 12:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin868 194.663 -17.9958 464313601 464572801 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

