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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin549
RA = 194.663, Dec = -17.9958
tmin = 381628801, tmax = 381888001
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='54548', job_status='RUN', time_executed='2021-09-06 12:32:50.461210', time_epoch_executed='1630956770.46' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54548

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54548/ft1_4FGL_J1258.6-1759_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54548/ft1_4FGL_J1258.6-1759_daily_bin549.fits outfile=/scratch/kocevski/54548/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin549.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=381628801.0 tmax=381888001.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 4.78
user 3.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.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/54548/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.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.99
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/54548/ltcube_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.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/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits
.....................!
real 13.84
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/54548/ltcube_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.fits outfile=/scratch/kocevski/54548/expmap_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.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/54548/ltcube_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.fits
.....................!
real 198.03
user 186.46
sys 4.01

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/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.fits scfile=/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits outfile=/scratch/kocevski/54548/cmap_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.fits scfile=/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits outfile=/scratch/kocevski/54548/cmap_HighResolution_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/54548/ft2_4FGL_J1258.6-1759_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54548/Model_4FGL_J1258.6-1759_daily_bin549.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/54548/ft1_filtered_4FGL_J1258.6-1759_daily_bin549.fits....................!
real 69.16
user 66.81
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.5335       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6312       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.454       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2308       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28352       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9934       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6134       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72372       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=   8607.985     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2535 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.956       -.86236E-06** at limit **
   2  Prefactor     .10000E-03    3.2530       -.23768E-07** at limit **
   3  Prefactor     9.3480        2.6149        .10237E-07    .15801E-04
   4  Prefactor     .10000E-03    5.2255       -.29266E-07** at limit **
   5  Prefactor     .10000E-03    13.083       -.15200E-06** at limit **
   6  norm          5.5332        1.3751        .11976E-07   -.17560E-05
   7  Prefactor     .10000E-03    24.768        .87803E-06** at limit **
   8  norm          .10000E-03    10.210       -.25477E-06** at limit **
   9  norm          .10000E-03    1.9844       -.16221E-07** at limit **
  10  Prefactor     3.6309        3.3962       -.17021E-07    .60665E-05
  11  norm          .10000E-03    .75517       -.78927E-08** at limit **
  12  norm          3.2870        10.043        .42348E-05    .61275E-05
  13  Prefactor     19.094        12.680       -.73868E-08    .50468E-04
  14  Prefactor     .10000E-03    9.9658        .89805E-07** at limit **
  15  Prefactor     24.458        29.256        .13630E-05    .17863E-03
  16  norm          1.2304        7.5572       -.10477E-05   -.20200E-03
  17  norm          4.1705        4.7623        .22506E-06    .12311E-03
  18  Prefactor     .10000E-03    6.5083        .98068E-08** at limit **
  19  Prefactor     34.106        25.840       -.13155E-05    .30530E-03
  20  Prefactor     .22450        5.5204       -.70926E-07    .85352E-04
  21  norm          1.9943        4.6835        .39171E-06   -.28394E-04
  22  Normalizat    1.6134        .22289       -.47230E-07    .33947E-04
  23  Prefactor     .72381        .10636       -.15051E-06    .42347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.53316
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.63091
  norm       = 0.0001
  norm       = 3.28697
  Prefactor  = 19.0943
  Prefactor  = 0.0001
  Prefactor  = 24.4583
  norm       = 1.2304
  norm       = 4.17051
  Prefactor  = 0.0001
  Prefactor  = 34.1055
  Prefactor  = 0.224504
  norm       = 1.99427
  Normalizat = 1.61343
  Prefactor  = 0.723805
 **********
 **   18 **HESSE 
 **********

 FCN=   8607.985     FROM HESSE     STATUS=OK           372 CALLS     2907 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2946        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3480        2.6121        .76910E-04   -1.5096    
   4  Prefactor     .10000E-03    5.2392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5332        1.3761        .51480E-04   -1.5237    
   7  Prefactor     .10000E-03    24.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9946        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6309        3.4010        .16001E-03   -1.5327    
  11  norm          .10000E-03    .76497        .78718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2870        10.050        .11167E-02   -1.5345    
  13  Prefactor     19.094        12.691        .91652E-04   -1.4834    
  14  Prefactor     .10000E-03    10.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.458        27.993        .81004E-04   -1.4718    
  16  norm          1.2304        6.8657        .29460E-03   -1.5486    
  17  norm          4.1705        4.7182        .19495E-03   -1.5300    
  18  Prefactor     .10000E-03    6.5243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.106        25.386        .68643E-04   -1.4539    
  20  Prefactor     .22450        100.40        .41075E-02   -1.5613    
  21  norm          1.9943        4.6699        .29341E-03   -1.5426    
  22  Normalizat    1.6134        .26372        .31458E-03   -.74639    
  23  Prefactor     .72381        .12496        .21556E-03   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08915e-09
Minuit parameter uncertainties:
  1  0.000222885
  2  1.26016e-07
  3  2.61216
  4  3.44957e-07
  5  1.49895e-05
  6  1.37614
  7  0.000224421
  8  2.88408e-05
  9  1.56733e-08
  10  3.4012
  11  1.79308e-07
  12  10.0555
  13  12.6927
  14  5.65929e-05
  15  28.0084
  16  5.81372
  17  4.71862
  18  4.81916e-06
  19  25.3942
  20  9.50907
  21  4.67077
  22  0.263949
  23  0.125012
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  2.884e-05  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:  7.238e-01  1.250e-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.613e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.663 -17.996
Photon Flux Upper Limit: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54548/likelihoodResults_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.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): 102
logL (Free Index) = 8607.98586189
delta logL = -0.000460438441223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8607.71869612
delta logL = 0.26670532792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2681       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5083       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73433       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=   8607.719     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      315 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2686        6.6845        .18261E-03   -.49120E-03
   2  alpha         3.5084        1.5377        .26205E-01   -.19593E-04
   3  Normalizat    1.5585        .26349        .31912E-03    .36327E-03
   4  Prefactor     .73434        .12374        .21414E-03    .42836E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26862
  alpha      = 3.50839
  Normalizat = 1.55845
  Prefactor  = 0.734343
 **********
 **   18 **HESSE 
 **********

 FCN=   8607.719     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2686        4.9043        .73045E-05   -1.5407    
   2  alpha         3.5084        1.1754        .10482E-02    .41518    
   3  Normalizat    1.5585        .26407        .63825E-04   -.76149    
   4  Prefactor     .73434        .12379        .42828E-04   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33552e-10
Minuit parameter uncertainties:
  1  4.90514
  2  1.23446
  3  0.264302
  4  0.123839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54548': 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) = 8607.71869605
delta logL = 0.266705407395

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  2.269e+00  4.905e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  3.508e+00  1.234e+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:  7.343e-01  1.238e-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.558e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.663 -17.996

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/54548/cmap_HighResolution_381628801_381888001_4FGL_J1258.6-1759_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-06 12:46:47.020160', job_id='54548', GAL2='0.73', fit_tolerance='1e-08', EG2='1.56', EG='1.61', time_epoch_completed='1630957607.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.67e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='549' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 54548: <4FGL_J1258.6-1759_daily_bin549> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin549> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 12:32:29 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:32:31 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:31 2021
Terminated at Mon Sep  6 12:46:48 2021
Results reported at Mon Sep  6 12:46:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin549 194.663 -17.9958 381628801 381888001 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 :                                   814.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

