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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin145
RA = 344.529, Dec = -27.9843
tmin = 276912001, tmax = 277171201
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='595714', job_status='RUN', time_executed='2021-09-29 02:57:48.134648', time_epoch_executed='1632909468.13' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595714/ft1_4FGL_J2258.1-2759_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595714/ft1_4FGL_J2258.1-2759_daily_bin145.fits outfile=/scratch/kocevski/595714/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin145.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=276912001.0 tmax=277171201.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.50
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/595714/ltcube_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.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/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits
.....................!
real 11.86
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/595714/ltcube_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.fits outfile=/scratch/kocevski/595714/expmap_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.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/595714/ltcube_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.fits
.....................!
real 192.66
user 186.68
sys 5.53

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/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits scfile=/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits outfile=/scratch/kocevski/595714/cmap_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits scfile=/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits outfile=/scratch/kocevski/595714/cmap_HighResolution_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595714/Model_4FGL_J2258.1-2759_daily_bin145.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/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits.....................!
real 51.94
user 50.52
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits', '/scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits', expMap='/scratch/kocevski/595714/expmap_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.fits', expCube='/scratch/kocevski/595714/ltcube_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/595714/Model_4FGL_J2258.1-2759_daily_bin145.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/595714/ft1_filtered_4FGL_J2258.1-2759_daily_bin145.fits
Spacecraft file(s): /scratch/kocevski/595714/ft2_4FGL_J2258.1-2759_daily_bin145.fits
Exposure map: /scratch/kocevski/595714/expmap_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.fits
Exposure cube: /scratch/kocevski/595714/ltcube_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/595714/Model_4FGL_J2258.1-2759_daily_bin145.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) = 6851.96863822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.381       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19756E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5953       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .60175E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.652       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9978       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.087       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5822       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.803       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99071       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67657       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=   6851.928     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2421 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.381        12.588       -.23673E-06   -.68046E-04
   2  Prefactor     .10001E-03    3.7069        .10664E-05** at limit **
   3  norm          .10000E-03    3.9358       -.28451E-06** at limit **
   4  Prefactor     .10000E-03    5.8266       -.20860E-06** at limit **
   5  Prefactor     4.5929        9.1279       -.10306E-04   -.32843E-03
   6  norm          2.3445        2.0164       -.53390E-05    .62282E-03
   7  Prefactor     45.849        45.825        .56917E-04    .11145E-03
   8  Prefactor     .10000E-03    4.1253        .20748E-06** at limit **
   9  norm          .57667E-01    1.6131       -.70784E-06    .78407E-04
  10  Prefactor     .10000E-03    26.684        .37298E-05** at limit **
  11  Prefactor     15.652        9.2448       -.34889E-05    .84016E-03
  12  norm          1.0243        .62133        .30301E-06   -.57791E-03
  13  Prefactor     .10000E-03    16.540        .55496E-05** at limit **
  14  Prefactor     .10000E-03    14.228       -.52335E-05** at limit **
  15  norm          1.9979        3.9726       -.74523E-06   -.54881E-03
  16  Prefactor     .10000E-03    15.040       -.30422E-05** at limit **
  17  norm          .10000E-03    .80007       -.10749E-07** at limit **
  18  Prefactor     24.091        22.052        .48112E-05    .17080E-03
  19  Prefactor     1.5517        260.51       -.18991E-03    .29513E-04
  20  Prefactor     39.817        43.101        .19148E-04    .53106E-04
  21  Normalizat    .99064        .14555       -.20300E-05    .71168E-03
  22  Prefactor     .67660        .13927        .49376E-06    .28963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3811
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59294
  norm       = 2.34446
  Prefactor  = 45.8493
  Prefactor  = 0.0001
  norm       = 0.0576674
  Prefactor  = 0.000100001
  Prefactor  = 15.652
  norm       = 1.02432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9979
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.091
  Prefactor  = 1.55173
  Prefactor  = 39.8173
  Normalizat = 0.990645
  Prefactor  = 0.676597
 **********
 **   18 **HESSE 
 **********

 FCN=   6851.928     FROM HESSE     STATUS=OK           344 CALLS     2765 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.381        12.588        .44360E-03   -1.4805    
   2  Prefactor     .10001E-03    11.246        .30766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.9370        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5929        9.1415        .18777E-03   -1.5279    
   6  norm          2.3445        2.0207        .91842E-04   -1.5402    
   7  Prefactor     45.849        45.915        .59243E-04   -1.4353    
   8  Prefactor     .10000E-03    4.1539        .16414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .57667E-01    29.412        .19104E-02   -1.5660    
  10  Prefactor     .10000E-03    27.129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.652        9.4437        .10124E-03   -1.4917    
  12  norm          1.0243        .62412        .40118E-04   -1.5506    
  13  Prefactor     .10000E-03    16.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9979        3.9474        .22571E-03   -1.5425    
  16  Prefactor     .10000E-03    15.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .80773        .72236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.091        22.067        .81617E-04   -1.4726    
  19  Prefactor     1.5517        268.59        .33760E-03   -1.5459    
  20  Prefactor     39.817        43.107        .63534E-04   -1.4445    
  21  Normalizat    .99064        .17428        .20908E-03   -.93344    
  22  Prefactor     .67660        .16684        .24629E-03   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27697e-09
Minuit parameter uncertainties:
  1  12.5894
  2  0.000530037
  3  2.11802e-05
  4  3.68141e-06
  5  9.14425
  6  2.0208
  7  45.9502
  8  6.98571e-06
  9  2.60372
  10  0.000292533
  11  9.44457
  12  0.624123
  13  9.10443e-06
  14  0.000122726
  15  3.94791
  16  2.72629e-05
  17  1.30162e-06
  18  22.0749
  19  41.0169
  20  43.1402
  21  0.174378
  22  0.16696
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.024e+00  6.241e-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:  6.766e-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:  9.906e-01  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.95
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.33e-05

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) = 6851.8010914
delta logL = 0.127320199525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6851.79432449
delta logL = 0.134087107903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1091       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0166       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66945       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=   6851.794     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      225 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1091        11.116        .95480E-02    .63999E-03
   2  alpha         2.0166        3.1088        .37549        .29052E-04
   3  Normalizat    1.0024        .79692E-01    .46197E-01   -.56283E-04
   4  Prefactor     .66945        .59520E-01    .41993E-01   -.55562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10912
  alpha      = 2.01659
  Normalizat = 1.00243
  Prefactor  = 0.669454
 **********
 **   18 **HESSE 
 **********

 FCN=   6851.794     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1091        .55991        .42668E-04   -1.5497    
   2  alpha         2.0166        .51240        .14001E-01   -.19459    
   3  Normalizat    1.0024        .16518        .20810E-03   -.92949    
   4  Prefactor     .66945        .16350        .24751E-03   -1.0474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66482e-11
Minuit parameter uncertainties:
  1  0.559911
  2  0.516201
  3  0.165264
  4  0.163622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595714': 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) = 6851.79432449
delta logL = 0.134087107964

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.109e+00  5.599e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.017e+00  5.162e-01  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:  6.695e-01  1.636e-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:  1.002e+00  1.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.46
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.02 +/- 0.52
Photon Flux (Free Index): 4.73e-08 +/- 3.10e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/595714/cmap_HighResolution_276912001_277171201_4FGL_J2258.1-2759_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='2.40e-05', photon_flux_error='3.53e-08', dlogl='1.34e-01', energy_flux='2.19e-05', photon_flux2='4.73e-08', job_status='DONE', time_completed='2021-09-29 03:07:49.879621', photon_index_error2='0.52', photon_index2='2.02', ts='7.95', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.99', time_epoch_completed='1632910069.88', return_code='0', job_id='595714', GAL2='0.67', EG2='1.00', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.10e-08', ts2='8.46', photon_index='2.29' WHERE bin_id='145' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:07:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 595714: <4FGL_J2258.1-2759_daily_bin145> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin145> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:42 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:55:44 2021
Terminated at Wed Sep 29 03:07:50 2021
Results reported at Wed Sep 29 03:07:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin145 344.529 -27.9843 276912001 277171201 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 :                                   599.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

