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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin1564
RA = 194.663, Dec = -17.9958
tmin = 644716801, tmax = 644976001
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='60330', job_status='RUN', time_executed='2021-09-06 12:53:56.851932', time_epoch_executed='1630958036.85' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60330/ft1_4FGL_J1258.6-1759_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60330/ft1_4FGL_J1258.6-1759_daily_bin1564.fits outfile=/scratch/kocevski/60330/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin1564.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=644716801.0 tmax=644976001.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.07
user 2.66
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60330/ft1_filtered_4FGL_J1258.6-1759_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/60330/ltcube_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.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/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits
.....................!
real 14.01
user 13.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60330/ft1_filtered_4FGL_J1258.6-1759_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/60330/ltcube_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.fits outfile=/scratch/kocevski/60330/expmap_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.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/60330/ltcube_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.fits
.....................!
real 190.78
user 185.04
sys 4.67

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/60330/ft1_filtered_4FGL_J1258.6-1759_daily_bin1564.fits scfile=/scratch/kocevski/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits outfile=/scratch/kocevski/60330/cmap_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60330/ft1_filtered_4FGL_J1258.6-1759_daily_bin1564.fits scfile=/scratch/kocevski/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits outfile=/scratch/kocevski/60330/cmap_HighResolution_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60330/ft1_filtered_4FGL_J1258.6-1759_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/60330/ft2_4FGL_J1258.6-1759_daily_bin1564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60330/Model_4FGL_J1258.6-1759_daily_bin1564.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/60330/ft1_filtered_4FGL_J1258.6-1759_daily_bin1564.fits.....................!
real 50.71
user 48.90
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5324       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.458       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3410       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5906       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1456       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.042       1.0000         .10000E-03   10000.    
    16 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.748       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7406       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .57278       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=   5575.011     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2576 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.504        59.587       -.33105E-04   -.48400E-04
   2  Prefactor     .10000E-03    1.3884       -.42781E-07** at limit **
   3  Prefactor     3.5323        1.8457       -.97526E-07    .43168E-04
   4  Prefactor     10.456        15.954        .28201E-06    .23273E-04
   5  Prefactor     .10000E-03    3.0925       -.14174E-07** at limit **
   6  norm          2.3411        1.3366       -.11952E-06    .16717E-03
   7  Prefactor     .10000E-03    80.815        .28825E-05** at limit **
   8  norm          4.5906        9.9623       -.69218E-06   -.37172E-03
   9  norm          2.2256        5.3848       -.29468E-05   -.10058E-03
  10  Prefactor     1.1466        2.3243        .14248E-05   -.27117E-02
  11  norm          .10000E-03    .93792        .31066E-07** at limit **
  12  norm          .10000E-03    4.0455       -.47754E-06** at limit **
  13  Prefactor     .10000E-03    3.8815        .82925E-06** at limit **
  14  Prefactor     .10000E-03    3.3499       -.18069E-06** at limit **
  15  Prefactor     26.044        29.121        .90439E-06    .44240E-06
  16  norm          .10000E-03    4.4429        .17595E-06** at limit **
  17  norm          26.593        13.649       -.80936E-06   -.66932E-05
  18  Prefactor     8.6299        23.659        .58445E-05    .24968E-04
  19  Prefactor     52.711        49.147       -.35484E-04   -.54176E-04
  20  Prefactor     .10000E-03    30.204        .95860E-06** at limit **
  21  norm          .10000E-03    4.0435       -.60977E-06** at limit **
  22  Normalizat    1.7407        .26568        .22326E-05   -.11061E-04
  23  Prefactor     .57274        .12592        .23685E-05    .52954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.5043
  Prefactor  = 0.0001
  Prefactor  = 3.53234
  Prefactor  = 10.4563
  Prefactor  = 0.0001
  norm       = 2.34113
  Prefactor  = 0.0001
  norm       = 4.59059
  norm       = 2.22556
  Prefactor  = 1.14664
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0438
  norm       = 0.0001
  norm       = 26.5932
  Prefactor  = 8.62988
  Prefactor  = 52.711
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 1.74071
  Prefactor  = 0.572741
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.011     FROM HESSE     STATUS=OK           372 CALLS     2948 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.504        59.606        .21470E-03   -1.3834    
   2  Prefactor     .10000E-03    1.3907        .85910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5323        1.8465        .71256E-04   -1.5332    
   4  Prefactor     10.456        15.973        .12390E-03   -1.5061    
   5  Prefactor     .10000E-03    3.0999        .12822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3411        1.3346        .62404E-04   -1.5402    
   7  Prefactor     .10000E-03    80.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5906        10.005        .93934E-03   -1.5279    
   9  norm          2.2256        6.4908        .25259E-03   -1.5410    
  10  Prefactor     1.1466        16.277        .21668E-02   -1.5494    
  11  norm          .10000E-03    .93978        .70614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.0476        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8851        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3537        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.044        29.122        .78500E-04   -1.4687    
  16  norm          .10000E-03    4.4808        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.593        13.635        .77682E-04   -1.4676    
  18  Prefactor     8.6299        23.613        .13646E-03   -1.5120    
  19  Prefactor     52.711        49.162        .27612E-03   -1.4255    
  20  Prefactor     .10000E-03    30.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.0743        .14661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7407        .30496        .30065E-03   -.71222    
  23  Prefactor     .57274        .14443        .23410E-03   -1.0875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61579e-08
Minuit parameter uncertainties:
  1  59.6471
  2  3.10792e-06
  3  1.84652
  4  15.9796
  5  8.53018e-06
  6  1.33461
  7  0.00014238
  8  10.0088
  9  6.4929
  10  8.64284
  11  8.30944e-08
  12  4.26235e-06
  13  7.53338e-06
  14  6.84563e-06
  15  29.1376
  16  1.90757e-05
  17  13.6364
  18  23.6389
  19  49.1997
  20  0.000512355
  21  1.40557e-05
  22  0.305296
  23  0.144518
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  4.591e+00  1.001e+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:  5.727e-01  1.445e-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.741e+00  3.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/60330/likelihoodResults_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.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) = 5574.51036607
delta logL = 0.500339623282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5574.18724125
delta logL = 0.823464438774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97064       1.0000         .10000E-03   10000.    
     2 'alpha     '    .48679       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56922       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=   5574.187     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96981        1.4174        .13062E-01    .86757E-04
   2  alpha         .48588        .65323        .50000       -.37636E-04
   3  Normalizat    1.7576        .25843        .67654E-01    .11559E-04
   4  Prefactor     .56919        .12370        .40633E-01    .32728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.96981
  alpha      = 0.485878
  Normalizat = 1.75761
  Prefactor  = 0.56919
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.187     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96981        1.9617        .88200E-04   -1.5511    
   2  alpha         .48588        .73722        .27986E-01   -.93677    
   3  Normalizat    1.7576        .29568        .29924E-03   -.70775    
   4  Prefactor     .56919        .14155        .23454E-03   -1.0890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22688e-11
Minuit parameter uncertainties:
  1  1.96182
  2  0.771662
  3  0.295975
  4  0.141638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60330': 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) = 5574.18724013
delta logL = 0.823465559361

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  9.698e-01  1.962e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  4.859e-01  7.717e-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:  5.692e-01  1.416e-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.758e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 0.49 +/- 0.77
Photon Flux (Free Index): 4.69e-09 +/- 5.77e-09
Energy Flux (Free Index): 5.41e-05 +/- 9.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/60330/cmap_HighResolution_644716801_644976001_4FGL_J1258.6-1759_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-05', comment='SUCCESS', energy_flux2='5.41e-05', dlogl='8.23e-01', photon_flux2='4.69e-09', job_status='DONE', time_completed='2021-09-06 13:04:40.329804', photon_index_error2='0.77', photon_index2='0.49', ts='0.25', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='9.13e-05', EG='1.74', time_epoch_completed='1630958680.33', return_code='0', job_id='60330', GAL2='0.57', EG2='1.76', return_code2='0', photon_flux_error2='5.77e-09', ts2='1.90', photon_index='2.23' WHERE bin_id='1564' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 60330: <4FGL_J1258.6-1759_daily_bin1564> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin1564> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 12:50:01 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:50:04 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:50:04 2021
Terminated at Mon Sep  6 13:04:40 2021
Results reported at Mon Sep  6 13:04:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin1564 194.663 -17.9958 644716801 644976001 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 :                                   634.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

