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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin221
RA = 194.663, Dec = -17.9958
tmin = 296611201, tmax = 296870401
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='52545', job_status='RUN', time_executed='2021-09-06 12:25:43.616171', time_epoch_executed='1630956343.62' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52545

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52545/ft1_4FGL_J1258.6-1759_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52545/ft2_4FGL_J1258.6-1759_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52545/ft1_4FGL_J1258.6-1759_daily_bin221.fits outfile=/scratch/kocevski/52545/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin221.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=296611201.0 tmax=296870401.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.32
user 4.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52545/ft1_filtered_4FGL_J1258.6-1759_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/52545/ft2_4FGL_J1258.6-1759_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/52545/ltcube_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.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/52545/ft2_4FGL_J1258.6-1759_daily_bin221.fits
.....................!
real 12.04
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52545/ft1_filtered_4FGL_J1258.6-1759_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/52545/ft2_4FGL_J1258.6-1759_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/52545/ltcube_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.fits outfile=/scratch/kocevski/52545/expmap_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.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/52545/ltcube_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.fits
.....................!
real 191.13
user 185.25
sys 5.35

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/52545/ft1_filtered_4FGL_J1258.6-1759_daily_bin221.fits scfile=/scratch/kocevski/52545/ft2_4FGL_J1258.6-1759_daily_bin221.fits outfile=/scratch/kocevski/52545/cmap_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.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 1.84
user 0.36
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27849E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .81059E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6640       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10200E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .20405E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5067       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0843       1.0000         .10000E-03   10000.    
    12 'norm      '    .89262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0722       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.551       1.0000         .10000E-03   10000.    
    16 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21126E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26366E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24980E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56520       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2099       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8207.218     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2560 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    32.162         .0000    ** at limit **
   2  Prefactor     1.8543        4.6446         .0000        .22586E-02
   3  Prefactor     5.8140        2.4662         .0000       -.40466E-03
   4  Prefactor     8.4293        11.825         .0000        .12114E-02
   5  Prefactor     .10007E-03    11.630         .0000    ** at limit **
   6  norm          3.6641        1.1570         .0000       -.89256E-03
   7  Prefactor     .10004E-03    36.711         .0000    ** at limit **
   8  norm          .10000E-03    7.5757         .0000    ** at limit **
   9  norm          5.2668        9.6093         .0000        .80526E-02
  10  Prefactor     7.5197        9.6641         .0000        .14311E-02
  11  norm          1.0859        2.4085         .0000        .12130E-02
  12  norm          .89486        13.269         .0000        .27059E-01
  13  Prefactor     .10000E-03    9.4446         .0000    ** at limit **
  14  Prefactor     8.0626        8.8488         .0000        .97027E-03
  15  Prefactor     27.645        17.087         .0000       -.88058E-03
  16  norm          .10000E-03    1.6568         .0000    ** at limit **
  17  norm          .10000E-03    2.2356         .0000    ** at limit **
  18  Prefactor     .10000E-03    4.4797         .0000    ** at limit **
  19  Prefactor     .10000E-03    6.4335         .0000    ** at limit **
  20  Prefactor     .10021E-03    5.6485         .0000    ** at limit **
  21  norm          .10000E-03    1.2599         .0000    ** at limit **
  22  Normalizat    .56496        .24438         .0000        .36230E-04
  23  Prefactor     1.2099        .12321         .0000       -.25625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100391
  Prefactor  = 1.85429
  Prefactor  = 5.81401
  Prefactor  = 8.42931
  Prefactor  = 0.000100065
  norm       = 3.66415
  Prefactor  = 0.000100039
  norm       = 0.0001
  norm       = 5.2668
  Prefactor  = 7.51969
  norm       = 1.08591
  norm       = 0.894861
  Prefactor  = 0.000100002
  Prefactor  = 8.06259
  Prefactor  = 27.6453
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100212
  norm       = 0.0001
  Normalizat = 0.56496
  Prefactor  = 1.20994
 **********
 **   18 **HESSE 
 **********

 FCN=   8207.218     FROM HESSE     STATUS=OK           372 CALLS     2932 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    32.236        .21421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8543        4.5932        .28571E-03   -1.5436    
   3  Prefactor     5.8140        2.4550        .86108E-04   -1.5226    
   4  Prefactor     8.4293        11.795        .69052E-03   -1.5127    
   5  Prefactor     .10007E-03    12.140        .41789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6641        1.1544        .52227E-04   -1.5325    
   7  Prefactor     .10004E-03    36.726        .20749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2668        9.3500        .87371E-03   -1.5249    
  10  Prefactor     7.5197        9.4190        .14638E-03   -1.5159    
  11  norm          1.0859        2.3682        .19988E-03   -1.5500    
  12  norm          .89486        13.474        .25562E-02   -1.5519    
  13  Prefactor     .10000E-03    9.7667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0626        8.8106        .14112E-03   -1.5140    
  15  Prefactor     27.645        16.927        .76324E-04   -1.4656    
  16  norm          .10000E-03    1.6624        .11311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2403        .13214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4399        .21443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10021E-03    44.342        .41199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2654        .99297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .56496        .25784        .45934E-03   -1.0949    
  23  Prefactor     1.2099        .13345        .17015E-03   -.86026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05172e-08
Minuit parameter uncertainties:
  1  0.00710866
  2  4.59407
  3  2.45505
  4  11.798
  5  0.00178187
  6  1.15443
  7  0.00238027
  8  6.51413e-05
  9  9.35256
  10  9.42087
  11  2.36841
  12  6.9463
  13  0.000264493
  14  8.81199
  15  16.93
  16  4.33507e-06
  17  8.23053e-06
  18  3.72244e-05
  19  2.32282e-05
  20  0.00614278
  21  3.44485e-06
  22  0.258393
  23  0.133488
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  6.514e-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:  1.210e+00  1.335e-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:  5.650e-01  2.584e-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: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/52545/likelihoodResults_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.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) = 8207.21838455
delta logL = -0.000613226628047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8207.21777143
delta logL = -1.06987499748e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2116       1.0000          .0000       5.0000    
     3 'Normalizat'    .56498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2099       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=   8207.218     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      260 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    687.56        .36285E-02** at limit **
   2  alpha         1.6267        3.1337        .50000       -.52387E-07
   3  Normalizat    .56496        .45524E-01    .45934E-03    .11103E-03
   4  Prefactor     1.2099        .24125E-01    .17015E-03    .31486E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62672
  Normalizat = 0.56496
  Prefactor  = 1.20994
 **********
 **   18 **HESSE 
 **********

 FCN=   8207.218     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2175.0        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6267        2.5989        .50000       -.35684    
   3  Normalizat    .56496        .13002        .18374E-04   -1.0949    
   4  Prefactor     1.2099        .68923E-01    .34030E-04   -.86026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83288e-09
Minuit parameter uncertainties:
  1  0.000419916
  2  2575.93
  3  0.130092
  4  0.0689286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52545': 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): 102
logL (Free Index) = 8207.21776936
delta logL = 1.96403925656e-06

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  4.199e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.627e+00  2.576e+03  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.210e+00  6.893e-02  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:  5.650e-01  1.301e-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/52545/cmap_HighResolution_296611201_296870401_4FGL_J1258.6-1759_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-06 12:39:10.961564', job_id='52545', GAL2='1.21', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1630957150.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='221' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:39:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 52545: <4FGL_J1258.6-1759_daily_bin221> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin221> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:25:23 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:25:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:25:25 2021
Terminated at Mon Sep  6 12:39:12 2021
Results reported at Mon Sep  6 12:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin221 194.663 -17.9958 296611201 296870401 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 :                                   789.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

