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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin979
RA = 344.529, Dec = -27.9843
tmin = 493084801, tmax = 493344001
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='599929', job_status='RUN', time_executed='2021-09-29 03:13:36.592650', time_epoch_executed='1632910416.59' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599929/ft1_4FGL_J2258.1-2759_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599929/ft1_4FGL_J2258.1-2759_daily_bin979.fits outfile=/scratch/kocevski/599929/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin979.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=493084801.0 tmax=493344001.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.59
user 3.33
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.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/599929/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.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.52
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/599929/ltcube_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.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/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits
.....................!
real 12.36
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/599929/ltcube_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.fits outfile=/scratch/kocevski/599929/expmap_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.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/599929/ltcube_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.fits
.....................!
real 193.96
user 188.35
sys 5.21

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2258.1-2759 @ 344.529 -27.9843

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits scfile=/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits outfile=/scratch/kocevski/599929/cmap_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.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=344.529 yref=-27.9843 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits scfile=/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits outfile=/scratch/kocevski/599929/cmap_HighResolution_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.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=344.529 yref=-27.9843 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/599929/Model_4FGL_J2258.1-2759_daily_bin979.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/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits.....................!
real 55.15
user 53.69
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits', '/scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits', expMap='/scratch/kocevski/599929/expmap_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.fits', expCube='/scratch/kocevski/599929/ltcube_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/599929/Model_4FGL_J2258.1-2759_daily_bin979.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2258.1-2759'

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/599929/ft1_filtered_4FGL_J2258.1-2759_daily_bin979.fits
Spacecraft file(s): /scratch/kocevski/599929/ft2_4FGL_J2258.1-2759_daily_bin979.fits
Exposure map: /scratch/kocevski/599929/expmap_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.fits
Exposure cube: /scratch/kocevski/599929/ltcube_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/599929/Model_4FGL_J2258.1-2759_daily_bin979.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) = 7069.53805985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1581       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.702       1.0000         .10000E-03   10000.    
     6 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.988       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.966       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4974       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5651       1.0000         .10000E-03   10000.    
    12 'norm      '    .42103       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2468       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .72068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.273       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83503       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7069.513     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2393 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8140        .10065E-07** at limit **
   2  Prefactor     9.1589        5.7680       -.18433E-06    .10214E-04
   3  norm          .10000E-03    4.6821        .63145E-07** at limit **
   4  Prefactor     .10000E-03    8.2118        .25740E-06** at limit **
   5  Prefactor     23.705        13.435        .10656E-05    .32500E-04
   6  norm          .10000E-03    .96169        .38663E-06** at limit **
   7  Prefactor     38.976        41.526       -.13693E-04    .76526E-05
   8  Prefactor     62.966        13.850       -.15324E-06    .68940E-04
   9  norm          3.4976        3.1633        .35191E-06    .61212E-03
  10  Prefactor     .10000E-03    16.570       -.10101E-04** at limit **
  11  Prefactor     2.5669        10.212        .14669E-05    .40427E-03
  12  norm          .42157        .64780       -.74618E-07    .18471E-02
  13  Prefactor     41.068        34.395        .11751E-05    .45370E-05
  14  Prefactor     1.2471        .94157        .16164E-07   -.57551E-03
  15  norm          .10000E-03    1.9775       -.86605E-07** at limit **
  16  Prefactor     .10000E-03    69.519       -.12176E-05** at limit **
  17  norm          .72141        1.9830       -.17973E-06   -.72079E-04
  18  Prefactor     4.9332        19.953        .32590E-06   -.14096E-04
  19  Prefactor     21.269        65.046       -.77706E-05    .13021E-05
  20  Prefactor     .10000E-03    17.304        .11275E-04** at limit **
  21  Normalizat    .83492        .15108        .18420E-05    .34588E-05
  22  Prefactor     .83052        .14090       -.34617E-06    .18678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.15891
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7051
  norm       = 0.0001
  Prefactor  = 38.9758
  Prefactor  = 62.9658
  norm       = 3.4976
  Prefactor  = 0.0001
  Prefactor  = 2.56688
  norm       = 0.42157
  Prefactor  = 41.0682
  Prefactor  = 1.24707
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.721412
  Prefactor  = 4.93325
  Prefactor  = 21.2687
  Prefactor  = 0.0001
  Normalizat = 0.83492
  Prefactor  = 0.830518
 **********
 **   18 **HESSE 
 **********

 FCN=   7069.513     FROM HESSE     STATUS=OK           346 CALLS     2739 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1589        5.7727        .13244E-03   -1.5103    
   3  norm          .10000E-03    4.6849        .17769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.705        13.437        .82278E-04   -1.4734    
   6  norm          .10000E-03    .99290        .16132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.976        41.538        .64192E-04   -1.4459    
   8  Prefactor     62.966        13.886        .50570E-04   -1.4119    
   9  norm          3.4976        3.1306        .12633E-03   -1.5334    
  10  Prefactor     .10000E-03    16.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5669        9.6340        .25488E-03   -1.5388    
  12  norm          .42157        .59240        .53255E-03   -1.5578    
  13  Prefactor     41.068        34.432        .62552E-04   -1.4425    
  14  Prefactor     1.2471        8.5017        .20045E-02   -1.5485    
  15  norm          .10000E-03    1.9861        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    70.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .72141        1.9455        .18093E-03   -1.5538    
  18  Prefactor     4.9332        19.587        .90553E-03   -1.5264    
  19  Prefactor     21.269        65.244        .86842E-04   -1.4785    
  20  Prefactor     .10000E-03    17.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83492        .17880        .23068E-03   -.98786    
  22  Prefactor     .83052        .16690        .23062E-03   -.98613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51993e-09
Minuit parameter uncertainties:
  1  2.5373e-06
  2  5.7731
  3  1.46158e-05
  4  7.97806e-06
  5  13.4392
  6  4.3619e-05
  7  41.5692
  8  13.8869
  9  3.13074
  10  0.00015563
  11  9.63985
  12  0.59241
  13  34.4488
  14  6.51326
  15  2.35563e-06
  16  0.000173526
  17  1.94569
  18  19.6128
  19  65.4643
  20  4.76265e-06
  21  0.178926
  22  0.167006
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  4.216e-01  5.924e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.305e-01  1.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.349e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.39e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 9.01e-06 +/- 1.27e-05

TS (Fixed Index): 1.57
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/599929/likelihoodResults_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.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) = 7069.08663399
delta logL = 0.426026290084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7069.08003772
delta logL = 0.432622556019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26629       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1410       1.0000          .0000       5.0000    
     3 'Normalizat'    .80918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7069.080     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26564        2.6618        .70169E-02    .22529E-02
   2  alpha         3.1415        4.0036        .41606        .50407E-04
   3  Normalizat    .80893        .32315E-01    .43730E-01   -.13542E-04
   4  Prefactor     .84577        .31666E-01    .44307E-01   -.58434E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.265644
  alpha      = 3.14154
  Normalizat = 0.808928
  Prefactor  = 0.845771
 **********
 **   18 **HESSE 
 **********

 FCN=   7069.080     FROM HESSE     STATUS=OK            35 CALLS      243 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26564        .48436        .32025E-03   -1.5605    
   2  alpha         3.1415        1.2945        .14722E-01    .25952    
   3  Normalizat    .80893        .16749        .23375E-03   -.99738    
   4  Prefactor     .84577        .16559        .22859E-03   -.98063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25923e-08
Minuit parameter uncertainties:
  1  0.484364
  2  1.36611
  3  0.167601
  4  0.165691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599929': 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) = 7069.0800327
delta logL = 0.432627577194

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.656e-01  4.844e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.142e+00  1.366e+00  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.458e-01  1.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.089e-01  1.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 3.14 +/- 1.37
Photon Flux (Free Index): 4.68e-08 +/- 3.90e-08
Energy Flux (Free Index): 9.99e-06 +/- 7.87e-06

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/599929/cmap_HighResolution_493084801_493344001_4FGL_J2258.1-2759_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', comment='SUCCESS', photon_flux='2.39e-08', energy_flux2='9.99e-06', photon_flux_error='3.35e-08', dlogl='4.33e-01', energy_flux='9.01e-06', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-09-29 03:24:58.739884', photon_index_error2='1.37', photon_index2='3.14', ts='1.57', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.51e-08', energy_flux_error2='7.87e-06', EG='0.83', time_epoch_completed='1632911098.74', return_code='0', job_id='599929', GAL2='0.85', EG2='0.81', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='3.90e-08', ts2='2.46', photon_index='2.29' WHERE bin_id='979' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:24:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 599929: <4FGL_J2258.1-2759_daily_bin979> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin979> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 03:10:20 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:10:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 03:10:22 2021
Terminated at Wed Sep 29 03:24:59 2021
Results reported at Wed Sep 29 03:24:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin979 344.529 -27.9843 493084801 493344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2258.1-2759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.77 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.

